There are so many scraping gems
available in Ruby
like Hpricot, Nokogiri and so many. I recommend Nokogiri
to scrape static web pages
. If you are scraping dynamic web pages
(means which involves button click, submit form etc..). I recommend Mechanize which internally uses Nokogiri
.