PetRescue::Scraper
A screen scraper for petrescue.com.au.
Installation
Add this line to your application's Gemfile:
gem 'pet_rescue-scraper'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pet_rescue-scraper
Usage
Currently only scraping dog listings is supported.
require 'pet_rescue/scraper'
dog_listings = PetRescue::Scraper::DogListings.new
dog_listings.take(10).each do |listing_page|
pet = listing_page.pet
puts "#{pet.name} - #{pet.breed}"
end
Contributing
- Fork it ( https://github.com/ags/pet_rescue-scraper/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 a new Pull Request