code_junkie

Amazon API library for Python?

Nov 10th, 2011
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. AWS_KEY = "..."
  2. SECRET_KEY = "..."
  3.  
  4. import bottlenose
  5. amazon = bottlenose.Amazon(AWS_KEY, SECRET_KEY)
  6. response=amazon.ItemLookup(ItemId="B0018AFK38", ResponseGroup="OfferSummary")
  7.  
  8. from lxml import objectify
  9. root = objectify.fromstring(response)
  10. root.Items.Item.OfferSummary.LowestNewPrice.FormattedPrice
Add Comment
Please, Sign In to add comment