Manual:Pywikibot/user-config.py

Configuration
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: Below are the instructions for editing manually the content of the file.
 * 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   in the command line shell and hit ENTER (which will interactively generate the file in an interactive "wizard" style).

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

If your language uses non-ASCII characters, you should use a Unicode-aware editor such as Notepad++ and save your user-config with Unicode encoding without BOM marks. Don't forget to insert into the first line.

Add the following lines to :

Now save  again.

For non-Wikimedia wikis

 * Main Page: Manual:Pywikipediabot/Use on non-WMF wikis