[Rails] HTML Parsing libraries

Scott Fortmann-Roe
Mon, 05 Jun 2006 09:34:02 -0000

My experience with Ruby''s html parsing tools are that they are
generally badly documented and buggy. I have had more success piping
the html I need parsed to a Perl program that uses Perl''s much, much
better html libraries and then reading back the output into my Ruby
program.

It''s ugly, but it works.

Check out search.cpan.org to see what perl classes are available.

-Scott

On 6/5/06, Hari Nara <nhariraj@yahoo.com> wrote:
> Hi,
>
> What is the best way to parse HTML?
>
> Or is there a simple way to convert a table to an array?
>
> I tried beautiful_soup and the built-in htmltools, but have trouble
> getting them to run.
>
> Any pointers?
>
> Thanks, Hari
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
Easily help charity when you shop: www.GiveTeam.org
I''m a member of the Give Team, are you?