【发布时间】:2014-09-09 13:02:04
【问题描述】:
我正在学习用python提取二手书价格 by python-amazon-simple-product-api
这是我目前使用的代码:
amazon = AmazonAPI(aws_access_key,
aws_secret_key,
aws_associate_key)
# products = amazon.search(Keywords=book_demanded_df['isbn01'].values[1], SearchIndex='Books')
products = amazon.search(Keywords='B00CU0NSCU', SearchIndex='All')
# print book_demanded_df['isbn01'].values[1]
for i, product in enumerate(products):
print product.title
print product.asin
print product.get_attribute('Manufacturer')
print product.get_attributes(['ItemDimensions.Width', 'ItemDimensions.Height'])
print product.offer_url
我认为密钥应该在get_attributes,我尝试写一些类似ItemAttributes.Amount 的东西,但似乎无法正常工作。
是否可以使用此 API 做到这一点?
【问题讨论】:
标签: python api amazon amazon-product-api