I use Bottlenose , Dan Loewenherz, "Super-awesome Python packaging for the Amazon product APIs." It does not parse XML, so I use 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
tobych Nov 23 '10 at 1:24 2010-11-23 01:24
source share