def __init__(self): self.data = [] self.href = 0 self.linkname = '' self.patt = re.compile(r'^/doc/\d+$') HTMLParser.__init__(self)