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

Module pywikipedia.sqldump

Reads a cur SQL dump and offers a generator over SQLentry objects which can be
used by other bots. Each SQLentry object represents a page.

Can also be run directly from the command line to retrieve page lists from
an SQL dump.

Syntax:

    python sqldump.py -sql:filename.sql action

Where action can be one of these:

* find               - List pages which contain a certain text
* findr              - List pages containing text matching a regular expression
* shortpages         - List pages with short contents
* unmountedcats      - List categories that don't have a supercategory
* percentnames       - List pages that contain internal links where special
                       characters are encoded as hexadecimal codes, e.g. %F6
* baddisambiguations - Created for de.wikipedia to fix primary topic
                       disambiguations (Begriffsklärung nach Modell 2).

Classes
SQLdump  
SQLentry Represents a wiki page, read from an SQL dump.

Function Summary
  query(sqldump, action)

Imported modules:
pywikipedia.config, re, time, pywikipedia.wikipedia
Imported variables:
generators
Generated by Epydoc 2.1 on Sun Jul 03 17:07:37 2005 http://epydoc.sf.net