File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ product
2+ asin
3+ title
4+ url
5+
6+ product
7+ features = []
8+ languages = []
9+ formats = []
10+ pages_count
11+ color
12+ unit_count
13+ size
14+ dimensions
15+ height
16+ value
17+ unit
18+ lenght
19+ value
20+ unit
21+ width
22+ value
23+ unit
24+ weight
25+ value
26+ unit
27+
28+ info
29+ contributors = []
30+ name
31+ role
32+ manufacturer
33+ brand
34+ model
35+ part_number
36+ product_group
37+ binding
38+ is_adult
39+ audience_rating
40+ edition
41+ warranty
42+ publication_date
43+ release_date
44+ external_ids
45+ ean = []
46+ isbn = []
47+ upc = []
48+
49+ images
50+ small
51+ medium
52+ large
53+ cropped
54+ small = []
55+ medium = []
56+ large = []
57+ variants
58+ small = []
59+ medium = []
60+ large = []
61+
62+ trade_in
63+ elegible
64+ price
65+ currency
66+
67+
68+ prices
69+ price
70+ value
71+ currency
72+ per_unit
73+ display
74+ savings
75+ value
76+ currency
77+ per_unit
78+ display
79+ percentage
80+ pvp
81+ value
82+ currency
83+ per_unit
84+ display
85+ availability
86+ max_order_quantity
87+ min_order_quantity
88+ type
89+ message
90+ condition
91+ condition
92+ condition_display
93+ sub_condition
94+ sub_condition_display
95+ merchant
96+ default_shipping_country
97+ merchant_id
98+ name
99+ other
100+ buybox_winner
101+ loyalty_points
102+ amazon_fulfilled
103+ free_shipping_eligible
104+ prime_eligible
105+ prime_exclusive
106+ prime_pantry
107+ violates_map
108+ offer_id
109+
110+ offers_summary = []
111+ highest_price
112+ value
113+ currency
114+ per_unit
115+ display
116+ lowest_price
117+ value
118+ currency
119+ per_unit
120+ display
121+ condition
122+ condition
123+ condition_display
124+ sub_condition
125+ sub_condition_display
126+ offer_count
Original file line number Diff line number Diff line change @@ -15,6 +15,9 @@ Features
1515* Object oriented interface for simple usage.
1616* Get information about a product through its ASIN or URL.
1717* Get multiple products at once.
18+ * Configurable throttling to avoid requests exceptions.
19+ * Support for all available countries.
20+ * Reorganized product information [ structure] ( https://github.com/sergioteula/python-amazon-paapi5/blob/master/PRODUCT.md ) for simple use.
1821* Ask for new features through the [ issues] ( https://github.com/sergioteula/python-amazon-paapi5/issues ) section.
1922
2023Installation
@@ -36,8 +39,8 @@ Basic usage:
3639Get multiple product information:
3740
3841 product = amazon.get_product('B01N5IB20Q,B01F9G43WU')
39- print(product[0].image_large )
40- print(product[1].prices.price)
42+ print(product[0].images.large )
43+ print(product[1].prices.price.value )
4144
4245Use URL insted of ASIN:
4346
@@ -50,6 +53,10 @@ Get the ASIN from a URL:
5053
5154Changelog
5255-------------
56+ Version 2.0.0
57+ - New structure for product info, adding all available information from the API.
58+ - Added raw_data with the information unparsed from the API.
59+ -Removed Amazon API version from package name to avoid changes in the future.
5360
5461 Version 1.0.0
5562 - Added support for getting multiple product information.
Original file line number Diff line number Diff line change @@ -285,9 +285,9 @@ def parse_product(item):
285285 # Trade In
286286 product .trade_in = Class ()
287287 try :
288- product .trade_in .elegible = item .item_info .trade_in_info .is_eligible_for_trade_in
288+ product .trade_in .eligible = item .item_info .trade_in_info .is_eligible_for_trade_in
289289 except Exception :
290- product .trade_in .elegible = None
290+ product .trade_in .eligible = None
291291 try :
292292 product .trade_in .price = item .item_info .trade_in_info .price .amount
293293 except Exception :
@@ -419,13 +419,13 @@ def parse_product(item):
419419 except Exception :
420420 product .prices .other .amazon_fulfilled = None
421421 try :
422- product .prices .other .free_shipping_elegible = listings .delivery_info .is_free_shipping_eligible
422+ product .prices .other .free_shipping_eligible = listings .delivery_info .is_free_shipping_eligible
423423 except Exception :
424- product .prices .other .free_shipping_elegible = None
424+ product .prices .other .free_shipping_eligible = None
425425 try :
426- product .prices .other .prime_elegible = listings .delivery_info .is_prime_eligible
426+ product .prices .other .prime_eligible = listings .delivery_info .is_prime_eligible
427427 except Exception :
428- product .prices .other .prime_elegible = None
428+ product .prices .other .prime_eligible = None
429429 try :
430430 product .prices .other .prime_exclusive = listings .program_eligibility .is_prime_exclusive
431431 except Exception :
You can’t perform that action at this time.
0 commit comments