Anyone know of any Ruby modules which can be used to parse an HTML page ? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
Sure, try the net/http module. You can see a very brief demonstration it''s use over at my blog. http://www.recentrambles.com/pragmatic/view/34 On Wed, 2006-03-22 at 21:22 +0100, Wes Gamble wrote:> Anyone know of any Ruby modules which can be used to parse an HTML page > ? > > Thanks, > Wes >Charlie Bowman Programmer Castle Branch Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060322/55ce2b4c/attachment.html
-----Original Message----- From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Charlie Bowman Sent: Wednesday, March 22, 2006 1:26 PM To: rails@lists.rubyonrails.org Subject: Re: [Rails] Relatively easy HTML/XML parsing utilities? Sure, try the net/http module. You can see a very brief demonstration it''s use over at my blog. http://www.recentrambles.com/pragmatic/view/34 On Wed, 2006-03-22 at 21:22 +0100, Wes Gamble wrote: Anyone know of any Ruby modules which can be used to parse an HTML page ? Thanks, Wes Charlie Bowman Programmer Castle Branch Inc. I have the feeling the OP is looking for something like html-parser, available on the RAA. Regards, Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060322/bcce99c6/attachment.html
Ezra Zygmuntowicz
2006-Mar-22 20:35 UTC
[Rails] Relatively easy HTML/XML parsing utilities?
On Mar 22, 2006, at 12:22 PM, Wes Gamble wrote:> Anyone know of any Ruby modules which can be used to parse an HTML > page > ? > > Thanks, > Wes >For this your best bet is probably RubyfulSoup. Its pretty liberal with malformed html. Cheers- -Ezra Zygmuntowicz Yakima Herald-Republic WebMaster http://yakimaherald.com 509-577-7732 ezra@yakima-herald.com
Wes Gamble
2006-Mar-22 20:37 UTC
[Rails] Re: RE: Relatively easy HTML/XML parsing utilities?
Dan, You''d be right. I''m not looking to make requests as much as I am looking to postprocess an already fetched page. What is the RAA? Wes Berger, Daniel wrote:> -----Original Message----- > From: rails-bounces@lists.rubyonrails.org > [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Charlie Bowman > Sent: Wednesday, March 22, 2006 1:26 PM > To: rails@lists.rubyonrails.org > Subject: Re: [Rails] Relatively easy HTML/XML parsing utilities? > > > Sure, try the net/http module. You can see a very brief > demonstration it''s use over at my blog. > > http://www.recentrambles.com/pragmatic/view/34 > > On Wed, 2006-03-22 at 21:22 +0100, Wes Gamble wrote: > > Anyone know of any Ruby modules which can be used to > parse an HTML page > ? > > Thanks, > Wes > > > Charlie Bowman > Programmer > Castle Branch Inc. > > > I have the feeling the OP is looking for something like html-parser, > available on the RAA. > > Regards, > > Dan-- Posted via http://www.ruby-forum.com/.
Ezra, Thanks. Searching semantics easier than XPath? We''ll see....I will take a look at it. Wes Ezra Zygmuntowicz wrote:> On Mar 22, 2006, at 12:22 PM, Wes Gamble wrote: > >> Anyone know of any Ruby modules which can be used to parse an HTML >> page >> ? >> >> Thanks, >> Wes >> > > > For this your best bet is probably RubyfulSoup. Its pretty liberal > with malformed html. > > Cheers- > -Ezra Zygmuntowicz > Yakima Herald-Republic > WebMaster > http://yakimaherald.com > 509-577-7732 > ezra@yakima-herald.com-- Posted via http://www.ruby-forum.com/.
Berger, Daniel
2006-Mar-22 20:44 UTC
[Rails] Re: RE: Relatively easy HTML/XML parsing utilities?
> -----Original Message----- > From: rails-bounces@lists.rubyonrails.org > [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Wes Gamble > Sent: Wednesday, March 22, 2006 1:36 PM > To: rails@lists.rubyonrails.org > Subject: [Rails] Re: RE: Relatively easy HTML/XML parsing utilities? > > > Dan, > > You''d be right. I''m not looking to make requests as much as I am > looking to postprocess an already fetched page. > > What is the RAA? > > Weshttp://raa.ruby-lang.org/ The RAA (Ruby Application Archive) is a central listing of a big chunk of freely available, 3rd party Ruby libraries. Note that it''s not a code repository - most people these days put their actual source on RubyForge (http://www.rubyforge.org) or SourceForge (or elsewhere). Also note that not everyone lists their stuff on the RAA, so a Google search can still be worthwhile. Regards, Dan