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 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.

See also: Using the python wikipediabot