A Python wrapper for the Amazon Product Advertising API. This module offers a light-weight access to the latest version of the Amazon Product Advertising API without getting in your way.
The AWS.ECommerceService.ItemNotAccessible error seems to be happening for certain ASIN or ISBN values for many API users. But, it is not handled by the python API. To test it, attempt to do a call like this:
api.item_lookup('192913214X', IdType='ASIN', ResponseGroup="ItemAttributes", SearchIndex="Books", Condition="All")
By adding an error type for this, I was able to do a try/except for it. I modified my own local copy to fix it. Here's what I changed to get it working:
errors.py: (inserted at line 16):
'ItemNotAccessible',
errors.py: (inserted at line 174):
class ItemNotAccessible(AWSError):
"""
This item is not accessible through Product Advertising API.
"""
api.py: (inserted at line 270):
'AWS.ECommerceService.ItemNotAccessible': ItemNotAccessible,
Originally reported by Anonymous
The AWS.ECommerceService.ItemNotAccessible error seems to be happening for certain ASIN or ISBN values for many API users. But, it is not handled by the python API. To test it, attempt to do a call like this:
api.item_lookup('192913214X', IdType='ASIN', ResponseGroup="ItemAttributes", SearchIndex="Books", Condition="All") By adding an error type for this, I was able to do a try/except for it. I modified my own local copy to fix it. Here's what I changed to get it working:
errors.py: (inserted at line 16): 'ItemNotAccessible',
errors.py: (inserted at line 174): class ItemNotAccessible(AWSError): """ This item is not accessible through Product Advertising API. """
api.py: (inserted at line 270): 'AWS.ECommerceService.ItemNotAccessible': ItemNotAccessible,