mangled attempt at using htmllib
Aahz Maruch
aahz at panix.com
Wed Oct 11 15:24:11 EDT 2000
In article <8s2bk5$mn5$1 at nnrp1.deja.com>,
Ari Davidow <ari_deja at ivritype.com> wrote:
>
>Traceback (innermost last):
> File "filtertest4.py", line 58, in ?
> print '%s' % process(line)
> File "filtertest4.py", line 36, in process
> text2print = parser.getLink
>AttributeError: getLink
>
>class seekUrl(htmllib.HTMLParser):
> def __init__(self):
> def start_a(self,attributes):
> def end_a(self):
> def handle_data(self, data):
> def getLink(self):
Try this:
class seekUrl(htmllib.HTMLParser):
def __init__(self):
def start_a(self,attributes):
def end_a(self):
def handle_data(self, data):
def getLink(self):
Note the different indentation.
--
--- Aahz (Copyright 2000 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
'Gender' isn't a definition, it's a heuristic. --Aahz
More information about the Python-list
mailing list