Skip to content

Instantly share code, notes, and snippets.

Folder Structure

Motivations

  • Clear feature ownership
  • Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
#!/usr/bin/python
#coding:utf-8
import bottlenose
AMAZON_ACCESS_KEY_ID = "AKIA..............."
AMAZON_SECRET_KEY = "NC.............................."
AMAZON_ASSOC_TAG = "yutakashino-22"
amazon = bottlenose.Amazon(AMAZON_ACCESS_KEY_ID, AMAZON_SECRET_KEY, AMAZON_ASSOC_TAG, Region='JP')
res = amazon.ItemLookup(ItemId="4588120824", ResponseGroup="Images",SearchIndex="Books", IdType="ISBN",Style="http://xml2json-xslt.googlecode.com/svn/trunk/xml2json.xslt")