ElementTree Tidy HTML Tree Builder and comments

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Björn Lindström

    #1

    ElementTree Tidy HTML Tree Builder and comments

    I'm considering using the ElementTree Tidy HTML Tree Builder for a web
    spidering program I'm developing.

    However, my program must be able to extract certain information from
    HTML comments.

    I'm basically creating my trees like this:

    TidyHTMLTreeBui lder.parse(urll ib.urlopen(url) )

    What I want to know is, is it possible to make TidyHTMLTreeBui lder
    preserve comments in this process, and if so, how would I go
    about it?

Working...