Amazon Book API for Python or Ruby? [duplicate]

血红的双手。 提交于 2019-12-05 00:24:25

问题


Possible Duplicate:
Amazon API library for Python?

I'm looking for an Amazon API that will allow me to:

  • Find books by title or author
  • Show book covers
  • Get information about each book (price, rating, number of reviews, format, number of pages, etc.)

Either a Python or Ruby library would be fine (I just want the library that's easiest to use). Any suggestions? I know there are some other posts about this on SO, but it seems like these APIs get outdated pretty quickly. [I tried a couple suggested Ruby libraries a couple months ago, but couldn't get any of them to work.]


回答1:


I think I found a couple of options for you.

The Ruby option:

The library provides support for the vast majority of the AWS v3.1 API. For example, all forms of product search are implemented, along with the transaction details API and the remote shopping-cart API. Furthermore, advanced features such as threaded retrieval of multiple pages, object caching and determining a client's most appropriate AWS locale are all available.

http://www.caliban.org/ruby/ruby-amazon.shtml

The Python option:

The Product Advertising API helps you advertise Amazon products using product search and look up capability, product information and features such as Customer Reviews, Similar Products, Wish Lists and New and Used listings.

http://pypi.python.org/pypi/python-amazon-product-api/0.2.1

Hopefully these can help you out. =)




回答2:


The API you are looking for is called the Product Advertising API (formerly called AWS - Amazon Web Services). Latest docs here.

The python-amazon-product-api looks like a fairly up-to-date wrapper for it, updated in June. I'm afraid I can't vouch for it as I've not used it myself.



来源:https://stackoverflow.com/questions/4589813/amazon-book-api-for-python-or-ruby

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