A
axjacob
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
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