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

Type SQLdump

object --+
         |
        SQLdump


Method Summary
  __init__(self, filename, encoding)
  entries(self)
Generator which reads one line at a time from the SQL dump file, and parses it to create SQLentry objects.
  query_find(self, keyword)
yields pages which contain keyword
  query_findr(self, regex, namespace)
yields pages which contain a string matching the given regular expression
  query_percentnames(self)
yields pages that contain internal links where special characters are encoded as hexadecimal codes, e.g.
  query_shortpages(self, minsize)
yields articles that have less than minsize bytes of text
  query_unmountedcats(self)
yields categories which don't have any supercategory
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Method Details

entries(self)

Generator which reads one line at a time from the SQL dump file, and parses it to create SQLentry objects. Stops when the end of file is reached.

query_find(self, keyword)

yields pages which contain keyword

query_findr(self, regex, namespace=None)

yields pages which contain a string matching the given regular expression

query_percentnames(self)

yields pages that contain internal links where special characters are encoded as hexadecimal codes, e.g. %F6

query_shortpages(self, minsize)

yields articles that have less than minsize bytes of text

query_unmountedcats(self)

yields categories which don't have any supercategory

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