Re: Re: HTML Parsing libraries

Igor Anic
Mon, 05 Jun 2006 10:10:53 -0000

- download gem from http://rubyforge.org/projects/ruby-htmltools/

- install it: gem install "htmltools-1[1].09.gem"

- try demo: http://ruby-htmltools.rubyforge.org/

or this one  :-) :

require ''html/tree''

p = HTMLTree::Parser.new(true, false)

p.feed("Hello")

print p.html.children[0].children[0].children[0].to_s

Hari Nara wrote:

Igor Anic wrote:

I used html-tools:
http://rubyforge.org/projects/ruby-htmltools/
and found it pretty simple to use but powerfull html parser library.

Thanks Scott for your reply. I am looking for a simple ruby solution as
the page I am trying to parse has only few tables in it.

Igor, I tried to get the html-tools to run but couldn''t succeed :( I
tried to run the ebaysearch.rb demo program and couldn''t run it either.

I am using Ruby 1.8 with RoR 1.1.

Where you able to use the html-tools? Can you share a simple/sample
code?

Thanks, Hari


_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org