Closed barbax7 closed 2 years ago
I think that the best way could be adding in items returned by get_items an object with informations about not found asin Like:
class NotValidAsin():
def __init__(self, asin, error):
self.asin = asin
self.error = error
This is already solved in the new version https://github.com/sergioteula/python-amazon-paapi/releases/tag/v4.2.0
I have added a new parameter to get_items
to include not available ones as items with the ASIN code but other attributes as None
. So you can check for non available items with if product.item_info is None
.
Hi @sergioteula As said in the Telegram group, in the get_items request, if we pass a list of asins and inside it there is an invalid asin, it isn't contemplated by the library.
But, if we run the request through the scratchpad, we get this response (with items
['B07VMG4ZL5','B084Q4T9NM']
in Italian marketplace):Is there a way to get the items and the errors both?