Package pywikipedia :: Module redirect
[show private | hide private]
[frames | no frames]

Module pywikipedia.redirect

Script to resolve double redirects, and to delete broken redirects.
Requires access to MediaWiki's maintenance pages or to a SQL 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:

* sql - retrieve information from a local dump (http://download.wikimedia.org).
* namespace:n - Namespace to process. Works only with a sql dump
* restart:n - Number of redirect to restart with (see progress). Works only with a sql dump

if this argument isn't given, info will be loaded from the maintenance page of
the live wiki.
argument can also be given as "-sql:filename.sql".

NOTE: For resolving redirects, please use solve_disambiguation.py -redir.

Classes
RedirectGenerator  
RedirectRobot  

Function Summary
  main()

Imported modules:
pywikipedia.config, re, pywikipedia.sqldump, sys, pywikipedia.wikipedia
Imported variables:
__version__, generators, msg_double, reason_broken
Generated by Epydoc 2.1 on Sun Jul 03 17:07:34 2005 http://epydoc.sf.net