File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22 asin
33 title
44 url
5+ raw_info
56
67 product
78 features = []
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Amazon Product Advertising API 5.0 wrapper for Python
22=======================================================
33A simple Python wrapper for the last version of the Amazon Product Advertising API. This module allows to get product information from Amazon using the official API in an easier way.
44
5- [ ![ PyPI] ( https://img.shields.io/pypi/v/python-amazon-paapi5 ?color=%231182C2&label=PyPI )] ( https://pypi.org/project/python-amazon-paapi/ )
5+ [ ![ PyPI] ( https://img.shields.io/pypi/v/python-amazon-paapi ?color=%231182C2&label=PyPI )] ( https://pypi.org/project/python-amazon-paapi/ )
66[ ![ Python] ( https://img.shields.io/badge/Python-2.x%20%7C%203.x-%23FFD140 )] ( https://www.python.org/ )
77[ ![ License] ( https://img.shields.io/badge/License-GPL--3.0-%23e83633 )] ( https://github.com/sergioteula/python-amazon-paapi/blob/master/LICENSE )
88[ ![ Support] ( https://img.shields.io/badge/Support-Good-brightgreen )] ( https://github.com/sergioteula/python-amazon-paapi/issues )
@@ -53,6 +53,9 @@ Get the ASIN from a URL:
5353
5454Changelog
5555-------------
56+ Version 2.0.1
57+ - Improved exception handling.
58+
5659 Version 2.0.0
5760 - New structure for product info, adding all available information from the API.
5861 - Added raw_data with the information unparsed from the API.
Original file line number Diff line number Diff line change @@ -443,7 +443,6 @@ def parse_product(item):
443443 except Exception :
444444 product .prices .other .offer_id = None
445445
446-
447446 # Offers Summary
448447 try :
449448 summaries = item .offers .summaries
@@ -623,9 +622,8 @@ class instance: An instance of the class Product containing all the available
623622 condition = condition ,
624623 item_ids = asin_list ,
625624 resources = product_resources )
626- except ValueError as exception :
627- logging .error ('Error in forming GetItemsRequest: %s' % (exception ))
628- return
625+ except Exception as exception :
626+ raise exception
629627
630628 try :
631629 # Wait before doing the request
@@ -651,5 +649,4 @@ class instance: An instance of the class Product containing all the available
651649 return None
652650
653651 except Exception as exception :
654- logging .error (str (exception ))
655- return None
652+ raise exception
Original file line number Diff line number Diff line change 55
66setuptools .setup (
77 name = 'python-amazon-paapi' ,
8- version = '2.0.0 ' ,
8+ version = '2.0.1 ' ,
99 author = 'Sergio Abad' ,
1010 author_email = 'sergio.abad@bytelix.com' ,
1111 description = 'Amazon Product Advertising API 5.0 wrapper for Python' ,
You can’t perform that action at this time.
0 commit comments