Skip to content

Instantly share code, notes, and snippets.

@utahta
Created June 8, 2011 15:21
Show Gist options
  • Save utahta/1014632 to your computer and use it in GitHub Desktop.
Save utahta/1014632 to your computer and use it in GitHub Desktop.
sample: amazon product advertising api
# coding=utf8
import bottlenose
from lxml import objectify
amazon = bottlenose.Amazon(access_key_id, secret_access_key, Region='JP')
res = amazon.ItemSearch(Keywords=u'東野圭吾', SearchIndex='Books', ItemPage='1', ResponseGroup='Small')
root = objectify.fromstring(res)
for item in root.Items.Item:
print unicode(item.ItemAttributes.Title)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment