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

Module pywikipedia.check_extern

This bot is used for checking external links from Wikipedia. It checks all external links in groups of 480 pages, gives the error code for each that causes problems, and counts the number of links with and without problems.

It accepts all general Wikipediabot arguments as well as: -start:xxx Check starting at 'xxx'. -nolog Do not log to a file, only give output to a screen.

Anything else is assumed to be a page that is to be checked. Spaces in page titles have to be replaced by underscores, otherwise the bot assumes the parts are separate pages. If no page has been specified and also no -start argument has been provided, the bot acts as if -start:! had been specified, starting at the beginning.

The bot returns all links that have some problem, with the errorcode provided by the server, or the artificial errorcode -1 if the server could not be reached at all. Output is sent both to the screen and the file check_extern.txt
Classes
URLerrorFinder  

Function Summary
  errorname(error)

Imported modules:
httplib, re, sys, urllib, pywikipedia.wikipedia
Imported variables:
allowederrorcodes, do_all, errname, log, start, todo
Generated by Epydoc 2.1 on Sun Jul 03 17:07:37 2005 http://epydoc.sf.net