I have a local wiki on my computer, Pywikibot naturally supplied. :-) I want to tell the bot not to sleep when it is time to work. I will sleep in the night and that's what I expect the bot to do. How can I tell the bot in config that for 'local' family it should *never*sleep and wait and throttle and lag?
Betreff: [Pywikipedia-l] Setting sleep time by family
I have a local wiki on my computer, Pywikibot naturally supplied. :-) I want to tell the bot not to sleep when it is time to work. I will sleep in the night and that's what I expect the bot to do. How can I tell the bot in config that for 'local' family it should *never*sleep and wait and throttle and lag?
-- Bináris
use the -putthrottle option with your command line like -pt:0
Regards xqt
You may also set in the user-config.py some lines about put_throttle, minthrottle and maxthrottle like the ones on config.py. :) for example, adding
minthrottle = 0 put_throttle = 0
your bot will not stop as a default (except for maxlag https://www.mediawiki.org/wiki/Maxlag ). Please be absolutely aware that obviously many wikis (and also servers) may not be tolerant with this behaviour! :)
2012/3/1 info@gno.de:
Betreff: [Pywikipedia-l] Setting sleep time by family
I have a local wiki on my computer, Pywikibot naturally supplied. :-) I want to tell the bot not to sleep when it is time to work. I will sleep in the night and that's what I expect the bot to do. How can I tell the bot in config that for 'local' family it should *never*sleep and wait and throttle and lag?
-- Bináris
use the -putthrottle option with your command line like -pt:0
Regards xqt
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
2012/3/3 Nickanc Wikipedia nickanc.wiki@gmail.com
You may also set in the user-config.py some lines about put_throttle, minthrottle and maxthrottle like the ones on config.py. :)
Well, this is common for every wiki, too.
What I say is to have different settings by family. Either using command line parameters or modifying user-config each time is uncomfortable. For the individually developed script that runs in my local wiki only, there is a solution: copying pywikibot.put_throttle.setDelay(delay=0, writedelay=0, absolute=True) into each script. That's not nice either. But is not good for framework scripts. Families may have different needs. I can easily imagine a wiki where the majority of edits is done by bots, and humans make less contribution. Sleeping is not neccessary. Nor in a low traffic wiki where nobody is disturbed by bot work. WM Foundation's server farm needs the maxlag conception that is unneccessary for a single server wiki. It's good to have a basic setting, and we should have an optional config setting for families that overwrites default.
pywikipedia-l@lists.wikimedia.org