On Sunday 09 March 2008 04:05:22 pm Janek Kozicki wrote: > I have never worked with bots on wikia, so I'm asking about any > pointers to some tutorial about how I could do this. I have a bleak > memory of some wikia bot written in python... but I cannot google it > now. I use the python bot called pywikipediabot http://meta.wikimedia.org/wiki/Pywikipediabot
Pywikipediabot normally communicates with Wikipedia, but can handle any wiki that has MediaWiki, including Wikia. But pywikipedia has poor, out-of-date documentation. To make a family file for nethack.wikia.com, I had to read some python source code to learn about 'scriptpath'. I left my notes about how I configured my bot at http://nethack.wikia.com/wiki/User:Kernigh_bot > So, basically my bot would download a wiki page, add a new row with > new results and upload it. Pywikipediabot has a replace.py script that uses regular expressions; I do not know if this would work in your case. (I only have experience with the movepages.py script.) Otherwise, you might want to: * write a program that adds the new row, and pretend that your program is a text editor for editarticle.py, or * program a new pywikipediabot script that adds the new row. > Also, I suppose that I should create an account for this bot, and ask > on this list to mark it as a bot account, right? Your bot should have its own account, but it might not need a bot flag. A "bot flag" hides the bot from Special:Recentchanges, and is best for bot that does repetitive tasks. If the cron job for your bot only runs a few times per day (or less often), then you probably do not need a bot flag. If you want people reading Special:Recentchanges to know when the new regression test results arrive, then your bot should not have a bot flag. --Kernigh (a contributor to nethack.wikia) _______________________________________________ Wikia-l mailing list [email protected] http://lists.wikia.com/mailman/listinfo/wikia-l
