Manual talk:Speed guide for pywikipediabot
I have a wiki name mywiki and I would like to run some of the python bots and I am not sure how to do this... This is what I have done so far.
install python download the python bots.
How do I tell it to run on mywiki.
Thanks -- 220.127.116.11 01:20, 3 April 2008
To initially set up the robot, you'll need to create two files:
- A family file, which contains a list of wikis on which the 'bot is to operate. This file specifies the addresses of your wiki on the Internet, a list of languages and namespaces as well as locations of key individual portions of your site (such as index.php and api.php). The pywikipedia distribution includes many example files, such as Uncyclopedia_family.py for the (currently fifty-one) languages in Uncyclopedia. If you have one individual wiki only, create a drastically stripped-down version of this file (as mywiki_family.py, for example) with the one language your wiki is currently using.
- A user-config.py file, an example of which (config.py) is also included with the pywikipedia package. This file contains the username which your robot uses to edit the wiki(s), the name of the family file (created above) and some information on which character set to use. For example, to tell a robot to edit Uncyclopedia (Desciclopédia Brazil, 偽基百科 Taiwan) as Hymie the robot the user-config.py would be:
family = 'uncyclopedia' mylang = 'pt' console_encoding = 'utf-8' usernames['uncyclopedia']['pt']='Hymie le robot' usernames['uncyclopedia']['zh-tw']='Hymie le robot'
Once you have these two files, you should be able to use python login.py to attempt to log the robot into the wiki and python testfamily.py to verify that your configuration is correct. --Carlb 02:13, 3 April 2008 (UTC)
I'm trying to use client-side login to use my bot, yet I'm getting a 403 error. What do I have to do to remedy this?18.104.22.168 19:27, 9 January 2010 (UTC)
I want to use the random mode in welcome.py but I dont know how to create the random user list for signature. Somebody can help me to insert the following code? <pre> * [[User:tranletuhan|tranletuhan]] * [[User:DHN|DHN]] </pre>
This code is wrote in the welcome.py or separate file? Thank you for your help! --Tranletuhan 09:20, 22 February 2010 (UTC)