Scruber
Scruber is an open source scraping framework for Ruby.
Getting started
-
Install Scruber at the command prompt if you haven't yet:
$ gem install scruber
-
Create a new workspace
$ scruber new myworkspace
-
Create a new scraper
$ scruber new scraper example
Scruber.run do
csv_file 'output.csv', col_sep: ','
get 'http://example.com'
parse :html do |page, html|
csv_out html.at('title').text
end
end
-
Run your scraper
$ scruber start example
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/scruber/scruber.
License
The gem is available as open source under the terms of the MIT License.