Ruby Amazon book search

我是研究僧i 提交于 2019-12-03 07:50:50

问题


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


回答1:


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!




回答2:


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')



回答3:


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.



来源:https://stackoverflow.com/questions/393234/ruby-amazon-book-search

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!