A Python wrapper for the Amazon Product Advertising API.
Project description
The Product Advertising API provides programmatic access to Amazon’s product selection and discovery functionality so that developers like you can advertise Amazon products to monetize your website.
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. You can make money using the Product Advertising API to advertise Amazon products in conjunction with the Amazon Associates program. Be sure to join the Amazon Associates program to earn up to 15% in referral fees when the users you refer to Amazon sites buy qualifying products.
More info can be found at https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html
Features
This module is still undergoing development. The support for the Amazon Product API is currently limited to a number of operations. More functionality is to follow as development progresses.
Supported so far are:
ItemLookup
ItemSearch
SimilarityLookup
Basic usage
In 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.
The API itself can used like this:
AWS_KEY = '...' SECRET_KEY = '...' api = API(AWS_KEY, SECRET_KEY) node = api.item_search('Books', Publisher='Galileo Press')
The node object returned is a lxml.objectified element. All its content can be accessed using the lxml.objectify API:
# .pyval will convert the node content into int here total_results = root.Items.TotalResults.pyval total_pages = root.Items.TotalPages.pyval # get all books from result set and # print author and title for book in node.Items.Item: print '%s: "%s"' % (book.ItemAttributes.Author, book.ItemAttributes.Title)
Please refer to the lxml.objectify documentation for more examples.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for python-amazon-product-api-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c585fada62fdd12b1f9a68a73b32c80fb731609b8bdda7fea05ce5698a3dfe2 |
|
MD5 | 5df8eb80061914e2942bc373b5d95a58 |
|
BLAKE2b-256 | 3027ad45e4239f168fedcbe976d933df48aec958e571fc0740b0cfe80d3f8f7b |
Hashes for python-amazon-product-api-0.2.0.win32-py2.6.msi
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cab37073ce607cdc98db06995f1e5b20f82cb261fbfb7c30cfd38da78604e90 |
|
MD5 | 2ce38fa044120145486161d60a07dc48 |
|
BLAKE2b-256 | 173791c9a6758c0072948776c83f8834bd154986a2b359e92f515734a2244fed |
Hashes for python-amazon-product-api-0.2.0.win32-py2.6.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 380cec9abea05a98a58a35eb62d6187a960bb08647c20524206e88c1ae3479dc |
|
MD5 | cb3ccbec78fd88a2975cc9d016de6ff7 |
|
BLAKE2b-256 | 23e21e66f2f3b9d37484dd18fefdbefc7457b480cd7b681f5d51c35791b6601b |
Hashes for python-amazon-product-api-0.2.0.win32-py2.5.msi
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5a446772ba08a14b88bd9ad6494664209de173de1085a49df919dcd67ac44d2 |
|
MD5 | 4c8fcf4d3418ae16aedde53a7fa3340d |
|
BLAKE2b-256 | fabe6c3f2b13914494692f7973131a3aac287116c8572f1b4d526b4963319ec6 |
Hashes for python-amazon-product-api-0.2.0.win32-py2.5.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c6800cda001b4b9675daaeeeaaa17b735f48668c9a86b7dada96fb18c1b8be6 |
|
MD5 | 90f11bc11105ccb0f46baa5c582d1618 |
|
BLAKE2b-256 | 8d5d3d184d8d2b43a03f5a3a897dace52c75c277180aaa5aac77423d258da50a |