python-amazon-product-api

A Python wrapper for the Amazon Product Advertising API
Download

python-amazon-product-api Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Sebastian Rahlf
  • Publisher web site:
  • http://bitbucket.org/basti/

python-amazon-product-api Tags


python-amazon-product-api Description

A Python wrapper for the Amazon Product Advertising API python-amazon-product-api is a Python library that offers a light-weight access to the latest version of the Amazon Product Advertising API without getting in your way.The Amazon API itself provides programmatic access to Amazon's product selection and discovery functionality. It has search and look up capabilities, provides information on products and other features such as Customer Reviews, Similar Products, Wish Lists and New and Used listings. More information about the API can be found at https://affiliate-program.amazon.com/gp/advertising/api/detail/main.htmlAll requests made by this module are signed as required since August 15, 2009.Basic usageIn order to use this API you'll obviously need an Amazon Associates Web Service account for which you must with Amazon at http://aws.amazon.com. Each account contains an AWSAccessKeyId and a SecretKey.Here is an example how to use the API to search for books of a certain publisher:AWS_KEY = '...'SECRET_KEY = '...'api = API(AWS_KEY, SECRET_KEY, 'de')node = api.item_search('Books', Publisher='Galileo Press')The node object returned is a lxml.objectified element. All its attributes can be accessed the pythonic way:# .pyval will convert the node content into int heretotal_results = node.Items.TotalResults.pyvaltotal_pages = node.Items.TotalPages.pyval# get all books from result set and# print author and titlefor book in node.Items.Item: print '%s: "%s"' % (book.ItemAttributes.Author, book.ItemAttributes.Title)Please refer to the lxml.objectify documentation for more details.Status:This module is still undergoing development. The support for the Amazon Product API is currently limited to a number of operations. Supported so far are: * ItemLookup * ItemSearch * SimilarityLookup * ListLookup * ListSearch * Help * BrowseNodeLookupMore functionality is to follow as development progresses.Installation:In order to install python-amazon-product-api you can use:easy_install python-amazon-product-apior download the source package from http://pypi.python.org/pypi/python-amazon-product-api, untar it and runpython setup.py installYou'll also find binaries there to make your life easier if you happen to use a Windows system.The development version is available bitbucket.org. Feel free to clone the repository and add your own features.hg clone http://bitbucket.org/basti/python-amazon-product-api/ Requirements: · Python


python-amazon-product-api Related Software