Htmllib help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • axjacob@comcast.net

    #1

    Htmllib help


    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.DumbW riter()
    format = formatter.Abstr actFormatter(w)
    p = htmllib.HTMLPar ser(format)
    p.feed(inhtml)
    p.close()
    for x in p.anchorlist:
    ...."Use x in regex"


    Thanks
Working...