git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1911 6c8d7289-2bf4-0310-a012-ef5d649a1542pull/1/head
parent
f02b426073
commit
3c038727a4
@ -0,0 +1,18 @@
|
||||
import xchat
|
||||
import urllib
|
||||
import re
|
||||
import string
|
||||
|
||||
__module_name__ = "yacy"
|
||||
__module_version__ = "0.1"
|
||||
__module_description__ = "Shows yacys current PPM"
|
||||
|
||||
user = "admin"
|
||||
password = "password"
|
||||
host = "localhost:8080"
|
||||
def yacy_ppm(word, word_eol, userdata):
|
||||
for line in urllib.urlopen("http://"+user+":"+password+"@"+host+"/xml/status_p.xml").readlines():
|
||||
if re.compile("<ppm>").search(line):
|
||||
xchat.command("me 's YaCy is crawling at "+line.strip().strip("<ppm/>")+" pages per minute.")
|
||||
|
||||
xchat.hook_command("YACY_SHOW",yacy_ppm,help="/yacy_show - shows the current ppm")
|
Loading…
Reference in new issue