question on HTMLParser and parser.feed()
Stephen Briley
sdb1031 at yahoo.com
Sat Dec 6 00:52:35 EST 2003
More information about the Python-list mailing list
Sat Dec 6 00:52:35 EST 2003
- Previous message (by thread): question on HTMLParser and parser.feed()
- Next message (by thread): How to use the outp(...) command
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi, I'm new to Python, so please bear with me.. I am satisfied with the HTMLparse of my htmlsource page. But I am unable to save the output of parser.feed(htmlsource). When I type parser.feed(htmlsource) into the interpreter, the correct output streams across the screen. But all of my attempts to capture this output to a variable are unsucessful (e.g. capt_text = parser.feed(htmlsource)). What am I missing and how can I get this to work? Thanks in advance! from htmllib import HTMLParser from formatter import AbstractFormatter, DumbWriter parser = HTMLParser(AbstractFormatter(DumbWriter())) parser.feed(htmlsource) __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/
- Previous message (by thread): question on HTMLParser and parser.feed()
- Next message (by thread): How to use the outp(...) command
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list