0

In my Ruby on Rails application i need to send get request to another web page, after that on that page will be redirect and all search result's will be visible... But how can i do this in rails? I simple need send get-request and get to my app values of elements, which are in specific css id or class, also it will be array...

With first part i think it is good to use net::http, but how to solve second part of question?

byCoder
  • 3,462
  • 6
  • 28
  • 49
  • @GBD no, it doesn't return... but i must to do somethink like this. Also es simple exampe i can tell: in ruby i send to google search request... it doesn't send anything to me, but i must collect to my app search result's that it gives... it's only example – byCoder Sep 27 '12 at 10:17

1 Answers1

0

You can use Mechanize for web scraping purposes. It uses Nokogiri for parsing pages.

gerky
  • 6,267
  • 11
  • 55
  • 82