Ruby Amazon book search

后端 未结 3 686
你的背包
你的背包 2021-02-03 15:00

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

3条回答
  •  名媛妹妹
    2021-02-03 15:14

    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!

提交回复
热议问题