ElementTree Tidy HTML Tree Builder and comments

Discussion in 'Python' started by =?utf-8?q?Bj=C3=B6rn_Lindstr=C3=B6m?=, Mar 19, 2005.

  1. 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:

    TidyHTMLTreeBuilder.parse(urllib.urlopen(url))

    What I want to know is, is it possible to make TidyHTMLTreeBuilder
    preserve comments in this process, and if so, how would I go
    about it?
     
    =?utf-8?q?Bj=C3=B6rn_Lindstr=C3=B6m?=, Mar 19, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Stub

    B tree, B+ tree and B* tree

    Stub, Nov 12, 2003, in forum: C Programming
    Replies:
    3
    Views:
    10,242
  2. Replies:
    6
    Views:
    386
    Magnus Lycka
    Feb 27, 2006
  3. Tim Arnold

    insert comments into elementtree

    Tim Arnold, Nov 16, 2007, in forum: Python
    Replies:
    2
    Views:
    405
    Tim Arnold
    Nov 19, 2007
  4. Kee Nethery
    Replies:
    12
    Views:
    2,204
    Stefan Behnel
    Jun 27, 2009
  5. Phlip
    Replies:
    5
    Views:
    592
    Stefan Behnel
    Jan 13, 2010
Loading...

Share This Page