Try the following script (I have not tested it yet - I am currently at my work, and I cannot use Pywikipediabot here because of a proxy):
#!/usr/bin/python import wikipedia, solve_disambiguation, pagegenerators mysite = wikipedia.getSite() start = '!' for arg in wikipedia.handleArgs(): if arg.startswith('-start'): start = arg[7:] generator = pagegenerators.AllpagesPageGenerator(start=start,includeredirects='only') bot = solve_disambiguation.DisambiguationRobot(True,[],False,generator,False,False) bot.run()
Save this as file.py, and then run "python file.py -start:!" (without the "s).
2008/3/9, okparanoid okparanoid@free.fr:
Hello,
i'm admin on mediawiki site on my companie's intranet.
I have renamed a lot of pages to integrate them in a new namespace.
As a result i have a lot of links that link to the olds names of the
pages which are became redirect pages.
that's a problem for us and for cosmetic reason i have to update all
this links to link directly on the renamed pages.
I dont have found e pywikipedia script who can do this ?
Search all the links in the wiki and change them if the link point on a
redirect page ?
Thanks for your help
Best regards
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l