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

Class RedirectGenerator


Method Summary
  __init__(self, source, namespace, restart)
  get_redirects_from_dump(self)
Loads a local sql dump file, looks at all pages which have the redirect flag set, and finds out where they're pointing at.
  retrieve_broken_redirects(self)
  retrieve_double_redirects(self)

Method Details

get_redirects_from_dump(self)

Loads a local sql dump file, looks at all pages which have the redirect flag set, and finds out where they're pointing at. Returns a dictionary where the redirect names are the keys and the redirect targets are the values. NOTE: if the redirect isn't in the main namespace, the returned key will be prefixed by the default namespace identifiers. See full_title() in dump.py.

Generated by Epydoc 2.1 on Sun Jul 03 17:07:33 2005 http://epydoc.sf.net