Htmllib help

axjacob at comcast.net axjacob at comcast.net
Thu Jul 5 19:23:08 EDT 2007


I am using html and formater as shown below. They are used as part of a larger program.

Even though I don't use any print statements, the htmllib seems to be throwing parts of the html page on to the standard out(my screen in this case). Is there a way to disable the output?

import htmllib
w = formatter.DumbWriter() 
format = formatter.AbstractFormatter(w)
p = htmllib.HTMLParser(format)
    p.feed(inhtml)
    p.close()
    for x in p.anchorlist:
       ...."Use x in regex"


Thanks



More information about the Python-list mailing list