From Wikisource
Jump to: navigation, search

Some scripts I'm using on en.wikisource. Prerequisites list comprehension and generator in Python. 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. 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. page read/write, for reading in most case it's better to use service in a script using to update sub-page of User:Phe/Author/Missing.