User:Phe/Scripts

Some scripts I'm using on en.wikisource. Prerequisites list comprehension and generator in Python.

botpywi.py miscellaneous functions, used by most other script because it add the path to pywikipedia script, you'll need to modify the sys.path.append('..') at start of the script to setup the right path.

query_ext.py generator interface to api.php, ugly because it remains many trace in the code to the older query.php interface. The most interesting script, it contains example how to use the various generator, see all function named test_*. Most other script are built on the top of this one. All generator are called Preloading*, other functions are used internally, you don't need them.

create_page.py page read/write, for reading in most case it's better to use service in query_ext.py

missing_author.py a script using query_ext.py to update sub-page of User:Phe/Author/Missing.