Hello,
I want to configure the information about user in advance Can we configure the login and password information of the user in pywikipedia?
Thanx
2010/3/2 Herulee heramb.forums@googlemail.com:
Hello,
I want to configure the information about user in advance Can we configure the login and password information of the user in pywikipedia?
Probably. Pywikipediabot is a third-party framework that's not directly associated with the MediaWiki API, it just interfaces with it. You should ask the pywikipediabot people or read its documentation.
Roan Kattouw (Catrope)
On Tue, Mar 2, 2010 at 9:58 AM, Herulee heramb.forums@googlemail.com wrote:
I want to configure the information about user in advance Can we configure the login and password information of the user in pywikipedia?
The login information should be specified in a file called user-config.py. This can have various elements, but the most common are (using # for comments as is usual in Python)
family = 'wikipedia' # Or whatever family your bot will (mainly) run on) mylang = 'en' # idem for the language usernames['wikipedia']['en'] = "MyNameBot"
It is possible to store passwords in a file, but I myself prefer to run
login.py -all -pass:pwd
with your bot account's password instead of 'pwd'. This will try to login to all accounts using that password. After that you won't have to think about passwords any more for a long time, because pywikipediabot remembers cookies, and thus remains logged on.
mediawiki-api@lists.wikimedia.org