= python-amazon-product-api =
This is a python wrapper around the //Amazon Product Advertising API//.
Although there are a bunch of python modules around (e.g. pyaws), they are either far too complex or were not supporting the latest API (2009-07-01). Also (since August 15, 2009) all calls to the Product Advertising API must be authenticated using request signatures. I couldn't find a library that supported this.
api = API(AWS_KEY, SECRET_KEY)
node = api.item_search('Books', Publisher='Galileo Press')
+# node object returned is a lxml.objectified element
# .pyval will convert the node content into int here
total_results = node.Items.TotalResults.pyval
total_pages = node.Items.TotalPages.pyval
-The node object returned is a lxml.objectified element. All its content can be accessed using the [[http://codespeak.net/lxml/objectify.html|lxml.objectify]] API.
+All its content can be accessed using the [[http://codespeak.net/lxml/objectify.html|lxml.objectify]] API.
+Have a look at the [[http://bitbucket.org/basti/python-amazon-product-api/src/tip/examples/|examples]] directory for more.