Htmllib help

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,781
Messages
2,569,615
Members
45,301
Latest member
BuyPureganics

Latest Threads

Top