On Tue, Mar 2, 2010 at 9:58 AM, Herulee <heramb.forums(a)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(a)gmail.com