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

Module pywikipedia.watchlist

Allows access to the bot account's watchlist.

The function refresh() downloads the current watchlist and saves
it to disk. It is run automatically when a bot first tries to save a page
retrieved via XML Export. The watchlist can be updated manually by running
this script. The list will also be reloaded automatically once a month.

Syntax: python watchlist [-all]

Command line options:
    -all  -  Reloads watchlists for all wikis where a watchlist is already
             present

Function Summary
  get(site)
  isWatched(pageName, site)
  main()
  makepath(path)
creates missing directories for the given path and returns a normalized absolute version of the path.
  refresh(site)
  refresh_all()

Imported modules:
os, pickle, re, sys, time, pywikipedia.wikipedia
Imported variables:
cache
Function Details

makepath(path)

creates missing directories for the given path and
    returns a normalized absolute version of the path.

- if the given path already exists in the filesystem
  the filesystem is not modified.

- otherwise makepath creates directories along the given path
  using the dirname() of the path. You may append
  a '/' to the path if you want it to be a directory path.

from holger@trillke.net 2002/03/18

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