Planning the future of Botwiki! - Help us bring Botwiki up to date, contribute to our strategy discussion, add bot scripts, and contribute manuals, guides, and tutorials! Almost anything related to bots, particularly those used to edit mediawiki, is welcome.
UNABLE TO EDIT? - We've experienced attacks by spambots lately and now require you to confirm your e-mail before you can edit (go to your preferences, enter an e-mail address, and request a confirmation e-mail, then go to your e-mail and click on the confirmation link). We also require new accounts to make a few edits and wait a few minutes before before you can create a page; however, if this is a problem contact us in #botwiki and we can manually confirm your account. Sorry for the inconvenience.
Botwiki:Bot helpboard
The Bot's Helpboard can be used for:
Nothing else. It is not for help regarding this wiki, understood? Always remember: nobody is forced to answer your question. Please post your message in English if possible, otherwise Italian is accepted as well. |
Contents |
Archives
Messages
Hi there!
Hi all! I'm currently learning how to create my own bot, and I have two questions:
- Do I need to have a separate account for my bot, i.e. one normal and one bot account?
- Just browsing the Botwiki gives me some times up to 1 minute delay until things happen, so I wonder if this is normal response time and will it affect my future bot testing in any way?
Thanks! --Twonex 09:44, 21 December 2011 (UTC)
- Hi, yes, in general one uses a separate bot account; the delay of up to 1 minute was only since yesterday I believe, I installed and extension to try deal with spambots but it's been slowing the site too much, I've disabled it. Also please note that right now this installation is still on MediaWiki 1.17. Snowolf how can I help? 17:56, 21 December 2011 (UTC)
- Hi Snowolf, thanks for replying! The response time is much better now. I wonder on which pages (articles) am I allowed to test my bot? Do I need to create my own test pages under the user account of my bot and use those in testing? Also, do I need a bot flag on Botwiki before I start testing? Thanks again!--TwoBot 19:35, 21 December 2011 (UTC)
- Depends on what you're testing I guess, in general, in the past people would make the pages they needed to test (either in userspace or in ns0) then delete them or tag them for deletion after they're done. You do not need the bot flag to test it, in fact, you can go ahead and test right now :) If however you want it, I'll be happy to give it to you :) Ask either here or on the irc channel :) Snowolf how can I help? 00:43, 22 December 2011 (UTC)
- Twonex, welcome! I, of course, concur with Snowolf. I recommend you tell us what you are testing, what your experience level is, etc. Are you just testing standard pywikipediabot or AWB usage? Or are you writing a custom script for pywikipediabot? Or are you writing a custom bot? What are you trying to do with the bot that you want to test? Are you testing your new script or just learning how to use the bot before asking for a flag on a WMF project? If your primary goal is simply an add_text.py or replace.py or similar script, it could be done in the live wiki and then undone relatively easily. We can probably help you or point you to someone who can. That will also give us a better idea whether you should have a flag. All the flag does is suppress your edits from recent changes (which benefits the rest of us, not the bot) and may give your bot a few edit rights that we could give it separate from the flag if desired. --Doug.(talk • contribs) 11:23, 22 December 2011 (UTC)
- Hi Snowolf, thanks for replying! The response time is much better now. I wonder on which pages (articles) am I allowed to test my bot? Do I need to create my own test pages under the user account of my bot and use those in testing? Also, do I need a bot flag on Botwiki before I start testing? Thanks again!--TwoBot 19:35, 21 December 2011 (UTC)
looking for a script
Hi all! I am little experienced in writinhg pywikipediabot script. i was wondering if someone could give me some help in writing a script that
- gets the diff between the latest edit made by my bot to a page and the previous edit
- puts it at the bottom of a determined page.
Thank you!--Nickanc 20:34, 30 December 2011 (UTC)
Problem with i18n
Hi, I'm trying to use pywikipedia with a German installation of MediaWiki, but it mangles the URLs of special pages. Instead of using Special:DoubleRedirects or Spezial:Doppelte_Weiterleitungen, it uses Spezial:DoubleRedirects and exits with an error.
Details: http://pastebin.com/UM8b7beU
Anything I can do about it? Like editing my family file? --Elfboi 22:56, 6 January 2012 (UTC)
- Fixed, had to change the scriptpath to /wiki/ instead of /wiki/index.php
Codification problems with pywikipediabot (pagefromfile.py)
Hello! I have a strange problem with a bot based on pywikipedia I use on a private spanish wiki, from a Linux (Ubuntu 10.04) system.
The bot uses pagefromfile.py to create pages from a textfile, which is created automatically from a script that uses HTML files as source for some of the data, heavily editing it with "sed" commands. The problem: The bot doesn't codify correctly the non-ASCII characters (like á, é, ñ) and so I get no usable page content.
I have tried to specify the codification to utf-8 in user-config.py (like it's recommended on this guide at mediawiki.org: [1] ) and revised the family configuration file, but it didn't make any difference. Also I have confirmed with the "file" command that the source text file is codified as UTF-8, but it seems the bot treats it like ASCII. The language configuration of my system is "es_AR.UTF-8".
Any ideas? I have no idea where to search ... perhaps it's just a very stupid error of mine :-/
Thank you for any help! --Daniel5000 04:07, 4 February 2012 (UTC)
- Solved. It was some misconfiguration in the family configuration file. Sorry :-) --Daniel5000 21:53, 4 February 2012 (UTC)
Working with 'User' namespace in Russian wiki
Hi all, I made bot for fast reverting all edits made by specified users. I use Pywikipediabot library for that and I've got annoying result on Russian MediaWiki project. It has two names for 'User:' namespace: 'Участник:' (male) and 'Участница:' (female). So, if I use UserContributionsGenerator(), on 'User:Test' it returns 'Участник:Участница:Test'! This issue also exists if I trying to get User Talk page. And also it seems to appear then bot works with files (filename becomes something like Image:File:Picture.png). Is there any way to solve that problem? Norrius 17:06, 20 July 2012 (UTC)
- Okay, it seems it was wrong family file autoconfiguration. Solved. Norrius 18:55, 20 July 2012 (UTC)