Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon Book API for Python or Ruby? [duplicate]

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.]

like image 993
grautur Avatar asked Jan 04 '11 01:01

grautur


People also ask

Does Amazon have an API for Python?

A simple Python wrapper for the last version of the Amazon Product Advertising API. This module allows interacting with Amazon using the official API in an easier way. If you are still using the old version, go here for documentation or check our migration guide.

What is API in Python?

API stands for application programming interface. In essence, an API acts as a communication layer, or as the name says, an interface, that allows different systems to talk to each other without having to understand exactly what each other does. APIs can come in many forms or shapes.

What is an AWS API?

Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale. APIs act as the "front door" for applications to access data, business logic, or functionality from your backend services.


2 Answers

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. =)

like image 79
geeknik Avatar answered Sep 27 '22 16:09

geeknik


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.

like image 26
Day Avatar answered Sep 27 '22 15:09

Day