Hi all, I''m trying to scrap (screen scraping) some message board (e.g. yahoo finance, or any forum, etc.) I''m trying to use ruby to do so, but still don''t know how to go over messages in the same html page and extract them into file thanks in advance J. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 3 May 2008, at 17:24, Jack Brown wrote:> > Hi all, > I''m trying to scrap (screen scraping) some message board > (e.g. yahoo finance, or any forum, etc.) > I''m trying to use ruby to do so, but still don''t know how > to go over messages in the same html page and extract them into fileHpricot is pretty nifty for parsing html Fred --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On 3 May 2008, at 17:24, Jack Brown wrote: > > >> Hi all, >> I''m trying to scrap (screen scraping) some message board >> (e.g. yahoo finance, or any forum, etc.) >> I''m trying to use ruby to do so, but still don''t know how >> to go over messages in the same html page and extract them into file >> > > Hpricot is pretty nifty for parsing html > > FredThis blog entry helped me get started: http://www.igvita.com/2007/02/04/ruby-screen-scraper-in-60-seconds/ After that, I worked through the specifics of the page that I was scraping. Cheers, Mohit. 5/4/2008 | 12:04 PM. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---