A plain simple Python client for Amazon Product Advertising API. This client is implemented following this Node.js API client to gives you unthrottled access to Amazon product data using a shared cache. Therefore it might not comply with the Amazon's specifications.
- Access to Amazon product data from a caching service provided by CommerceDNA, so you no longer run into the RequestThrottled error.
- An Amazon Product Advertising account
- AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY and AWS_ASSOCIATE_TAG
pip install python-amazon-unthrottled-paapi
Import library
from amazon.api import Amazon
Create client
amazon_client = Amazon(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_ASSOCIATE_TAG)
ItemSearch
The ItemSearch operation searches for items on Amazon. The Product Advertising API returns up to ten items per search results page.
response_text = amazon_client.ItemSearch(Keywords='Quentin Tarantino', SearchIndex='DVD')
ItemLookup
Given an Item identifier, the ItemLookup operation returns some or all of the item attributes, depending on the response group specified in the request.
response_text = amazon_client.ItemLookup(ItemId='B074J6F41V')
BrowseNodeLookup
Given a browse node ID, BrowseNodeLookup returns the specified browse node’s name, children, and ancestors. The names and browse node IDs of the children and ancestor browse nodes are also returned. BrowseNodeLookup enables you to traverse the browse node hierarchy to find a browse node.
response_text = amazon_client.BrowseNodeLookup(BrowseNodeId='154606011')
Copyright © 2020 apptiviz
See MIT License for details.