2008/2/19, Lee Francis Wilhelmsen <lee.francis.wilhelmsen(a)gmail.com>:
> I am uploading a lot of documents to my local wiki. However,
> Pywikipedia is sleeping for nearly 10 seconds between calls to
> page.put(...). For large amounts of files this is quite noticeable.
>
> "Sleeping for 9.3 seconds, 2008-02-19 10:06:45"
> "Creating page [[en:<something>]]"
>
> Can someone briefly explain why this sleep time is necessary and also
> how to reduce it (eliminate it?) if possible. I am thinking there is a
> story here... :-)
The reason is that we don't want to flood the wiki with bot edits.
Even if the edits are hidden on recentchanges, maximizing the number
of edits per minute is good on a public wiki.
To change or stop this, you can use -putthrottle:nn (or -pt:nn) with
nn a number on the command line. This will change the time from 10
seconds to nn seconds (so 0 will completely remove it). If you want to
change it for ALL runs of your bot , you can put
put_throttle = nn
again with nn a number, in your user-config.py.
--
Andre Engels, andreengels(a)gmail.com
ICQ: 6260644 -- Skype: a_engels