User:Disambot/Source

The Disambot source code is divided into three scripts:


 * enwp.py provides the framework for interfacing with the English Wikipedia. It uses a combination of API calls and regular HTTP requests.
 * disambot.py extracts a list of disambiguation pages (or more precisely, their titles) from working list.txt and puts each one through an inspection function which loads the page content, makes various changes, and saves any changes.
 * private.py stores the username and password of the bot account.

These scripts are shown below: