Web scraping/data extraction using mechanize gem in ruby on rails
A mechanize gem which provides the data extraction in a simple and easiest way in ruby on rails.
To use this gem, install it by:
gem install mechanize
than in your controller:
require 'mechanize'
agent = Mechanize.new # creates the mechanize object
doc = agent.get(“your_url”) #pass your url for which you want to extract the data
web_title = agent.page.title #this will give you title of the specified url

