Re: Pywikipediabot login
Andre Engels <andreengels <at> gmail.com>
2010-03-05 13:54:04 GMT
On Tue, Mar 2, 2010 at 9:58 AM, Herulee <heramb.forums <at> 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.
--
--
André Engels, andreengels <at> gmail.com
_______________________________________________
Mediawiki-api mailing list
Mediawiki-api <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api