Forum:Bot script to more efficiently replace links

I was just wondering if there was a script I could run for my bot that would take all instances of a link in any namespace and replace it with another link, similar to the function of the Disambig.py? As of right now, I can only use replace.py which (to my knowledge) can only go through one namespace at a time and has to go through every page to pick out links. Is there anything like what I described? Thanks!— Triforce   14  02:48, September 21, 2009 (UTC)
 * Well you can still use replace.py, but you can set it so it changes every page that contain the link you want to change. For example, if you wanted to change all Hello links to Bye, you use the -ref parameter which sets the bot to edit all pages that link to "Hello", like this: . This will only go through the pages that contain the Hello link. Hope that helps :).  Grunny  ( Talk ) 03:11, September 21, 2009 (UTC)
 * Sweet, you're brilliant! Thanks a bunch! :)— Triforce   14 [[Image:Triforce4.png|link=Special:Contributions/Triforce 14|15px]] 04:28, September 21, 2009 (UTC)