使用“bottlenose” - (http://pypi.python.org/pypi/bottlenose/0.3.4)
这是我的代码:
import bottlenose,json
AMAZON_SECRET_KEY="XXX" AMAZON_ACCESS_KEY_ID = "XXX" AMAZON_ASSOC_TAG="XXX" tmd = "B00005UQVU" amazon = bottlenose.Amazon(AMAZON_ACCESS_KEY_ID, AMAZON_SECRET_KEY, AMAZON_ASSOC_TAG) ResponseGroup="Offers",SearchIndex="Books", IdType="ISBN", Style="http://xml2json-xslt.googlecode.com/svn/trunk/xml2json.xslt") response = amazon.ItemLookup(ItemId=tmd, ResponseGroup="Offers", Condition="Used", \ # MarketplaceDomain="????", SearchIndex="????", \ Style="http://xml2json-xslt.googlecode.com/svn/trunk/xml2json.xslt")print response d = json.loads(response) print d["ItemLookupResponse"]["Items"]["Item"]["OfferSummary"]["LowestUsedPrice"]
我希望看到此页面的结果:
不是这个页面:
答案 0 :(得分:3)
2分钟后我发现了:
..将Region =“UK”添加到bottlenose.Amazon()中。