Kneescraper
TODO: Write a gem description
Installation
Add this line to your application's Gemfile:
gem 'kneescraper'
And then execute:
$ bundle
Or install it yourself as:
$ gem install kneescraper
Usage
TODO: Write usage instructions here
Contributing
- Fork it ( http://github.com//kneescraper/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Examples
ks = Kneescraper.new "http://google.com"
# Fetch data in <p> tags with
# list of urls
ks.fetchall ["/"], "//p" do |s|
puts s.inspect
end
# or just one url
ks.fetch "/", "//p" do |stuff|
puts stuff.inspect
end