copy everything after the source tag to the end of the page, save as ratpatrol.py in the pywikipedia directory/folder

<source lang="python">

!/usr/bin/python

-*- coding: utf-8 -*-

""" this application patrols the en.wikt

requires some version of the "pywikipedia framework", preferably recent, but need not be updated all the time (;-), most code is within this file

requires Python 2.6

requires Tkinter (which you should have with Python)

in user-config.py, make sure one line reads:

sysopnames['wiktionary']['en'] = "(your username)"

then run! will exit more cleanly if you only use the "quit" button, rather than closing the window

the "console" (on Windoze) or the command shell you started from will display lots of log messages to tell you what it is doing

Buttons:

Edit page -- open a new tab (or window) in default browser in page edit Show diffs -- open a new tab etc showing diffs for revision Skip user -- skip edits by this user for 24 hours Whitelist -- mark all edits seen by by this user for 24 hours (new or old) Skip -- skip this edit for 72 hours (someone else ought to look at it) Mark -- mark this edit patrolled (;-)

large edits won't fit in the differences boxes, use the "show diffs" button to see more the revision list at the bottom will often tell you if a later editor fixed/reverted a bad edit, which you can then mark

# following is specific to the net I am on; won't break anything for anyone else
# so don't worry about it; but you can remove this block if desired
if '<api' not in text and 'NdxICC' in text:
# silently ignore bad return from Nomadix box
time.sleep(5)
done = False
continue

if "Marked as patrolled" not in resp:
log("failed to patrol %s of %s" % (task.rcid, task.title))
for line in resp.splitlines(): print srep(line)
task = None
time.sleep(30)
# will presumably pick it up again eventually, if not marked by another
# if it did in fact succeed, no matter ...
continue