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. Advertisements

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. Eric
    Replies:
    0
    Views:
    669
  2. Stub

    B tree, B+ tree and B* tree

    Stub, Nov 12, 2003, in forum: C Programming
    Replies:
    3
    Views:
    10,585
  3. Replies:
    6
    Views:
    456
    Magnus Lycka
    Feb 27, 2006
  4. Tim Arnold

    insert comments into elementtree

    Tim Arnold, Nov 16, 2007, in forum: Python
    Replies:
    2
    Views:
    535
    Tim Arnold
    Nov 19, 2007
  5. Kee Nethery
    Replies:
    12
    Views:
    2,574
    Stefan Behnel
    Jun 27, 2009
  6. Dave Boland

    NotePad++ and HTML Tidy question

    Dave Boland, Aug 18, 2009, in forum: HTML
    Replies:
    5
    Views:
    5,636
  7. Phlip
    Replies:
    5
    Views:
    778
    Stefan Behnel
    Jan 13, 2010
  8. Alex van der Spek
    Replies:
    2
    Views:
    446
    Alain Ketterlin
    Oct 11, 2011
Loading...