Admin Forum:Using a bot

I know how to use a bot and all... Just had one question:
 * Is it possible to use a bot to remove all categories from all redirect pages? 13:27, September 5, 2012 (UTC)
 * replace.py maybe, if you can include redirects and filter by page content ("#REDIRECT").--PedroM (talk) 13:52, September 5, 2012 (UTC)
 * Can you elaborate it a bit, please. 13:55, September 5, 2012 (UTC)
 * I am talking pywikipedia. Go through all pages redirects (hey, there is a -redirectonly parameter), replace  \[\[Category:.+\]\]  (you need to set the -regex parameter) with nothing.--PedroM (talk) 14:29, September 5, 2012 (UTC)
 * Well... actually speaking, I am not that very advanced in using a bot. Can you tell me what exactly should I enter in cmd? 14:39, September 5, 2012 (UTC)
 * python replace.py -redirectonly:! -regex '\[\[Category:.+\]\]' '' --PedroM (talk) 15:29, September 5, 2012 (UTC)
 * As it is, right? Thank You very much for your help. 15:35, September 5, 2012 (UTC)
 * I'd modify Pedro's suggestion slightly to:
 * Not everyone capitalises the c in category. By using , you're telling the bot to look for both   and  .  You'll find as you use pywikipediabot more that you should almost always do a case-insensitive search like this.
 * Not everyone capitalises the c in category. By using , you're telling the bot to look for both   and  .  You'll find as you use pywikipediabot more that you should almost always do a case-insensitive search like this.


 * (How could someone not use a capital C? Doesn't the system automatically use a capital C?  Well, yes — but remember that many editors edit in Monobook, where there is no category module which adds categories automatically.  And many exclusively use source mode, where manual addition of the category link is the norm.  It's quite easy to avoid using capital Cs, actually.)    22:06: Thu 06 Sep 2012
 * Hey Thank You very much. You people look very experienced with bot. I had another question. I want to change all US-spelllings to UK ones like color to colour, realize to realise, etc. So what I was thinking of doing is something like this:

replace.py -ns:0 color colour Color Colour -search:color Is there any easier way of doing it? 05:26, September 7, 2012 (UTC)
 * You could prepare a file where you set up all replacements to be made, then pass that to the script with . Also, you can go through all pages by using   instead of  . Keep in mind that most scripts have a manual about all its parameters available, just run  .--PedroM (talk) 19:01, September 8, 2012 (UTC)
 * Or maybe something like userfixes. Well..the first code (for removing categories) that you gave me doesn't seem to be working. It says, "No changes were necessary at ...."

and doesn't make any changes. 16:54, September 13, 2012 (UTC)