Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install bookcrawler
Set your Amazon credentials as env vars:
export AWS_ACCESS_KEY_ID=... export AWS_SECRET_ACCESS_KEY=... export AMAZON_ASSOCIATES_TRACKING_ID=...
Find a book:
crawler = ::.new book = crawler.find_by_title('A Clash of Kings') # <Bookcrawler::Book: # asin: "0553579908", # title: "A Clash of Kings (A Song of Ice and Fire, Book 2)", # author: "George R. R. Martin", # detail_page_url: "http://...", # cover_url: "http://...">
This gem uses Vacuum under the hood.
The gem is available as open source under the terms of the MIT License.