Open ghost opened 13 years ago
in fact, pylook doesn't work with python3 yet -- just solve syntax problem in current version. we have to find a way to make it compatible way of parsing instead of using old htmlparser. I will update when I have some free time.
I've just downloaded pylookup and I want to update the database but I have this error, even with local files:
python3 pylookup.py -u http://docs.python.org/
Wait for a few seconds .. Fetching htmls from 'http://docs.python.org/' Traceback (most recent call last): File "pylookup.py", line 241, in
update(opts.db, opts.url, opts.append)
File "pylookup.py", line 165, in update
parser = IndexProcessor(writer, dirname(url))
File "pylookup.py", line 88, in init
htmllib.HTMLParser.init( self, formatter.NullFormatter() )
TypeError: init() takes exactly 1 positional argument (2 given)
Thanks,