2017-07-27 168 views
0

我使用此代码来搜索亚马逊上的产品。 UPC有没有办法让我查看产品?亚马逊产品搜索API Python UPC

from amazon.api import AmazonAPI 
amazon = AmazonAPI(AMAZON_ACCESS_KEY, AMAZON_SECRET_KEY, AMAZON_ASSOC_TAG) 
product = amazon.lookup(ItemId='B00EOE0WKQ') 
product.title 

回答

0

免责声明:我没有安装的python-亚马逊简单产品的API。 (我使用python-amazon-product-api 0.2.8)

不过,我确实认为在你的amazon.product调用中加入IdType='UPC',SearchIndex='All'会让你更接近。

例如为:

product = amazon.lookup(ItemId='028000467012', IdType='UPC', SearchIndex='All') 

也,一定要使用符合您ItemIdIdType,以避免出现错误。

更在这里找到:http://docs.aws.amazon.com/AWSECommerceService/latest/DG/EX_LookupbyUPC.html https://www.amazon.com/gp/seller/asin-upc-isbn-info.html