Amazon API library for Python? [closed]

谁说我不能喝 提交于 2019-11-26 06:30:57

问题


What Python libraries do folks use for querying Amazon product data? (Amazon Associates Web Service - used to be called E-Commerce API, or something along those lines).

Based on my research, PyAWS seems okay, but still pretty raw (and hasn\'t been updated in a while). Wondering if there\'s an obvious canonical library that I\'m just missing.


回答1:


The only other library I'm aware of is pyAmazon, which is the predecessor of pyaws. If you're familiar with the Amazon API (or are willing to become so), you could probably put together something yourself with ZSI.




回答2:


There is now another alternative: python-amazon-product-api. It supports API version 2009-11-01 2010-12-01.




回答3:


I'm using Bottlenose, Dan Loewenherz's "super awesome Python wrapper for the Amazon Product Advertising API". It doesn't parse the XML, so I'm using lxml.objectify:

ACCESS_KEY_ID = "..."
SECRET_KEY = "..."
ASSOC_TAG = "..."

import bottlenose
amazon = bottlenose.Amazon(ACCESS_KEY_ID, SECRET_KEY, ASSOC_TAG)
response=amazon.ItemLookup(ItemId="B0018AFK38", ResponseGroup="OfferSummary")

from lxml import objectify
root = objectify.fromstring(response)
root.Items.Item.OfferSummary.LowestNewPrice.FormattedPrice



回答4:


If what you are looking for is a simple, object oriented access to Amazon products (lookup and search), try python-amazon-simple-product-api. Its a new project i've just released:

http://github.com/yoavaviram/python-amazon-simple-product-api

Its the new kid on the block!




回答5:


PyAWS is no longer hosted on SourceForge. The latest version (0.3.0) is available via the authors website.

Make sure you also grab the patch for Amazons latest API changes, mentioned in the comments.




回答6:


pyaws seems to be the best one out there. I used it here (my source code) It worked fine for me.




回答7:


How about boto? Anyone have any experience with it? I just started looking for a Python package for Amazon and boto looks up to date (v1.8c release 28-Jun-2009), active and complete (has a long list of supported interfaces).




回答8:


pyaws is the best in my opinion. The most available version is 0.2.0, but there is also a version 0.3.0 that is somewhat harder to find. The best maintained version of it that I have found though, which is based on 0.3.0, is on bitbucket.



来源:https://stackoverflow.com/questions/48884/amazon-api-library-for-python

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!