Manual:Pywikibot/user-config.py

Configuration
You do not need to "install" this package to be able to make use of it. You can actually just run it from the directory where you unpacked it or where you have your copy of the SVN sources.

Before you run any of the programs, you need to create a file named user-config.py in your pywikipedia directory either one of two ways:
 * 1) Create the file manually (it needs at least two or three variables configured, see below) or
 * 2) run the script login.py by typing python login.py in the command line shell and hit ENTER. That helps to complete this process.

For Wikimedia projects
Open a text editor (e.g. Notepad in Windows) and save the text file as, in the pywikipedia folder.

Add the following lines to :

Now save  again.

For non-Wikimedia wikis

 * Main Page: Pywikipedia bot on non-Wikimedia projects