Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby Amazon book search

Does anybody have a good Ruby script for finding books (or other products) on Amazon using their API?

like image 707
srboisvert Avatar asked Dec 25 '08 22:12

srboisvert


3 Answers

I've been using Amazon/ECS with great success. One important point is that it's not GPLed (whereas Ruby/AWS seems to be), so if it's important in your case, take care.

Here is a sample:

require 'amazon/ecs'

# default options; will be camelized and converted 
# to REST request parameters.
Amazon::Ecs.options = {:aWS_access_key_id => [your access key]}
res = Amazon::Ecs.item_search('ruby')

You may also want to have a look at some example of integration with the Mephisto blogging system.

cheers!

like image 122
Thibaut Barrère Avatar answered Oct 21 '22 06:10

Thibaut Barrère


I suppose that kind of script would have to use Ruby/AWS, like this test.

You have here an quick introduction.

And you have there a full example involving searching books.

response = r.keyword_search
('ruby programming', 'books')
like image 39
VonC Avatar answered Oct 21 '22 04:10

VonC


VonC's third link was a partial answer. It led me to ruby-aaws (note - different from ruby-aws).

I then found this blog post with an example of using it.

like image 36
srboisvert Avatar answered Oct 21 '22 06:10

srboisvert