|
|
@ -14,5 +14,6 @@ def yacy_ppm(word, word_eol, userdata):
|
|
|
|
for line in urllib.urlopen("http://"+user+":"+password+"@"+host+"/xml/status_p.xml").readlines():
|
|
|
|
for line in urllib.urlopen("http://"+user+":"+password+"@"+host+"/xml/status_p.xml").readlines():
|
|
|
|
if re.compile("<ppm>").search(line):
|
|
|
|
if re.compile("<ppm>").search(line):
|
|
|
|
xchat.command("me 's YaCy is crawling at "+line.strip().strip("<ppm/>")+" pages per minute.")
|
|
|
|
xchat.command("me 's YaCy is crawling at "+line.strip().strip("<ppm/>")+" pages per minute.")
|
|
|
|
|
|
|
|
return xchat.EAT_ALL
|
|
|
|
|
|
|
|
|
|
|
|
xchat.hook_command("YACY_SHOW",yacy_ppm,help="/yacy_show - shows the current ppm")
|
|
|
|
xchat.hook_command("YACY_SHOW",yacy_ppm,help="/yacy_show - shows the current ppm")
|
|
|
|