Package pywikipedia :: Module weblinkchecker :: Class History
[show private | hide private]
[frames | no frames]

Class History


Stores previously found dead links.
The URLs are dict's keys, and values are lists of tuples where each tuple
represents one time the URL was found dead. Tuples have the form
(title, date, error) where title is the wiki page where the URL was found,
date is an instance of time, and error is a string with error code and
message.

We assume that the first element in the list represents the first time we
found this dead link, and the last element represents the last time.

Example:
        
dict = {
    'http://www.example.org/page': [
        ('WikiPageTitle', DATE, '404: File not found'),
        ('WikiPageName2', DATE, '404: File not found'),
    ]

Method Summary
  __init__(self)
  log(self, url, error, containingPage)
  save(self)
  setLinkAlive(self, url)
If the link was previously found dead, removes it from the .dat file and returns True, else returns False.
  setLinkDead(self, url, error, containingPage)

Method Details

setLinkAlive(self, url)

If the link was previously found dead, removes it from the .dat file and returns True, else returns False.

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