Noob, html trees & parsing

Discussion in 'Ruby' started by Michael Lesser, Jun 12, 2009.

  1. Hi all.

    Noob, first project, read the Poignant Guide, et al.

    I have a big Perl script that parses badly-formed HTML files with HTML
    Element/Tree. I think it's time for an update.

    I think the equivalent in Ruby is Hpricot? I haven't found a lot of dox
    on this, so I am assuming that this type of problem is something that
    becomes 'obvious' once you start working in Ruby. Or should I be
    looking at another/better solution (as in, duh, it's got XXX built-in,
    noob...)?

    TIA
    --
    Posted via http://www.ruby-forum.com/.
    Michael Lesser, Jun 12, 2009
    #1
    1. Advertising

  2. Michael Lesser wrote:
    > Hi all.
    >
    > Noob, first project, read the Poignant Guide, et al.
    >
    > I have a big Perl script that parses badly-formed HTML files with HTML
    > Element/Tree. I think it's time for an update.
    >
    > I think the equivalent in Ruby is Hpricot? I haven't found a lot of dox
    > on this, so I am assuming that this type of problem is something that
    > becomes 'obvious' once you start working in Ruby. Or should I be
    > looking at another/better solution (as in, duh, it's got XXX built-in,
    > noob...)?
    >
    > TIA


    You might want to take a look at html5lib <
    http://code.google.com/p/html5lib/ > for parsing bad markup.
    --
    Posted via http://www.ruby-forum.com/.
    Sanjay Sharma, Jun 13, 2009
    #2
    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. David Svoboda

    Parsing multiple XML trees?

    David Svoboda, Dec 15, 2005, in forum: XML
    Replies:
    3
    Views:
    615
    Andrew Schorr
    Dec 16, 2005
  2. Replies:
    4
    Views:
    494
    Marcus Kwok
    May 11, 2006
  3. Replies:
    3
    Views:
    642
  4. jacob navia

    Binary search trees (AVL trees)

    jacob navia, Jan 3, 2010, in forum: C Programming
    Replies:
    34
    Views:
    1,417
    Dann Corbit
    Jan 8, 2010
  5. Koncept
    Replies:
    9
    Views:
    200
    Mark Hubbart
    Mar 3, 2004
Loading...

Share This Page