Manual:Pywikibot/redirect.py

In other languages: en - fr - it - ja

Script which fixes double redirects, and deletes broken redirects.

Requires access to MediaWiki's maintenance pages or to a XML dump file. Delete function requires adminship.

Syntax:

python redirect.py action [-argument]

where action can be one of these:


 * double - fix redirects which point to other redirects
 * broken - delete redirects where targets don't exist. Requires adminship.

and argument can be:

Argument can also be given as "-xml:filename.xml".
 * xml - retrieve information from a local XML dump (http://download.wikimedia.org).

If this argument isn't given, info will be loaded from a special page of the live wiki.