Amazon API library for Python? [closed]

What Python libraries do folks use for querying Amazon product data? (Amazon Associates Web Service - used to be called E-Commerce API, or something along those lines).

Based on my research, PyAWS seems okay, but still pretty raw (and hasn't been updated in a while). Wondering if there's an obvious canonical library that I'm just missing.


Solution 1:

There is now another alternative: python-amazon-product-api. It supports API version 2009-11-01 2010-12-01.

Solution 2:

I'm using Bottlenose, Dan Loewenherz's "super awesome Python wrapper for the Amazon Product Advertising API". It doesn't parse the XML, so I'm using lxml.objectify:

ACCESS_KEY_ID = "..."
SECRET_KEY = "..."
ASSOC_TAG = "..."

import bottlenose
amazon = bottlenose.Amazon(ACCESS_KEY_ID, SECRET_KEY, ASSOC_TAG)
response=amazon.ItemLookup(ItemId="B0018AFK38", ResponseGroup="OfferSummary")

from lxml import objectify
root = objectify.fromstring(response)
root.Items.Item.OfferSummary.LowestNewPrice.FormattedPrice

Solution 3:

If what you are looking for is a simple, object oriented access to Amazon products (lookup and search), try python-amazon-simple-product-api. Its a new project i've just released:

http://github.com/yoavaviram/python-amazon-simple-product-api

Its the new kid on the block!

Solution 4:

PyAWS is no longer hosted on SourceForge. The latest version (0.3.0) is available via the authors website.

Make sure you also grab the patch for Amazons latest API changes, mentioned in the comments.