[Wikia-l] gallery thumb size?

DanTMan dan_the_man at telus.net
Thu Jan 24 04:39:38 UTC 2008


:/ Bots are basically required to have a delay between each edit, that's 
why bot frameworks like pywikipedia have a throttle.
Bots without it hammer the server to much, drain resources, and 
generally MediaWiki is coded to start giving any bot which does that a 
pile of "Internal errors" and start ignoring it.
The other bot programmers take care of the pummeling of the idiot bot 
programmer who did not use a throttle.

I generally recommend not trying to create a bot from scratch and just 
use the pywikipediabot framework. It's a framework, not a static bot, so 
while it does come with some default scripts like replace.py (Which, is 
quite likely enough to handle what you need to do without any extra 
programming at all, not to mention 99% of the other things you will want 
to do) it is there as a framework, so it's made so you can plug it in 
and create your own bots without needing to worry about the low level 
stuff like getting data, saving to the page, and other such things.
Creating a bot is actually quite simple, omitting the main function and 
imports which are just simple things common to any pywikipedia bot, and 
just noting that pywikipediabot uses "wikipedia" as it's main namespace 
or whatever you want to call it. A simple bot which grabs the content of 
[[Project:Sandbox]] from a wiki and then adds a line of text to it would 
be something like:
site = wikipedia.getSite();
page = wikipedia.Page( site, "Project:Sandbox" );
try:
    text = page.get();
    text += u'\n\nTestBot was Here.';
    page.put(text);
except wikipedia.NoPage:
    page.put(u'TestBot was Here.\n\nT_T And there was no page here...');

^_^ Quite simply, that would go to Project:Sandbox on whatever wiki you 
run it on... Add a new paragraph "TestBot was Here." to the end of the 
page... And if it didn't exist before hand, it would add "T_T And there 
was no page here..." in another paragraph after that. heh

~Daniel Friesen(Dantman) of:
-The Gaiapedia (http://gaia.wikia.com)
-Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
-and Wiki-Tools.com (http://wiki-tools.com)

Victor wrote:
> You could also always give the bot a delay between each edit?
> Means it would take longer, but it would get it done (even though it would
> show up on recent changes as a bot doing it until it was flagged bot).
>
> On Jan 24, 2008 2:09 PM, Catherine Munro <catherine at wikia.com> wrote:
>
>   
>>> ---QUESTION for someone who understands bot privileges---
>>>
>>> User JohnBot has the bot flag in the Vim Tips wiki
>>> http://vim.wikia.com/wiki/Main_Page.
>>>
>>> Presumably that bot flag applies ONLY to that wiki? Or, could JohnBot
>>> also
>>> edit pages in the sawfish wiki, as a bot? I could just experiment with
>>> one
>>> edit to see, but a documented approach would be better.
>>>
>>>       
>> Yes, it applies only to that wiki, but any member of the Community Team
>> can set the bot flag for it on sawfish as well.    Would you like me to do
>> that?
>>
>> Catherine
>>
>> _______________________________________________
>> Wikia-l mailing list
>> Wikia-l at wikia.com
>> http://lists.wikia.com/mailman/listinfo/wikia-l
>>
>>
>>     
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Wikia-l mailing list
> Wikia-l at wikia.com
> http://lists.wikia.com/mailman/listinfo/wikia-l
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wikia.com/pipermail/wikia-l/attachments/20080123/36b52e22/attachment-0004.html 


More information about the Wikia-l mailing list