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. You can create it manually (it needs at least two or three variables configured, see below) or run the script generate_user_files.py by typing python generate_user_files.py in the command line shell and hit ENTER. That helps to complete this process.

Configuration for Wikipedia
Open a text editor (e.g. Notepad in Windows) and save the text file as, in the pywikipedia folder.

Add the following two required lines to :

Now save  again.

Configuration for other Wikimedia wikis
Add the following three required lines to :

Now save  again.

See also: Using the python wikipediabot