我试图检索产品子类别sales rank(如果适用的话),这是我用Python编写的脚本
amazon=bottlenose.Amazon('AmazonCredentials',MaxQPS=0.9)
response = amazon.ItemLookup(ItemId="B007SNQ4FM", ResponseGroup="Large", )
x = etree.XML(response)
string_to_store=etree.tostring(x, pretty_print = True)
print string_to_store
我从亚马逊得到的回应
^{pr2}$实际的响应可以在这里看到:http://pastebin.com/rCUKCbas
网站上的产品详细信息:
ASIN: B007SNQ4FM
Item model number: EC45S
Average Customer Review: 2.4 out of 5 stars See all reviews (59 customer reviews)
Amazon Best Sellers Rank: #12,677 in Home & Kitchen (See Top 100 in Home & Kitchen)
#1 in Home Improvement > Appliances > Range Hoods
#18 in Home & Kitchen > Heating, Cooling & Air Quality > Air Conditioners & Accessories > Portable
在上面我们可以看到它在不同的类别下有三个排名,但是通过使用产品api,我只能得到一个排名(12677),但是我如何才能检索到其他两个排名呢。在
我也希望在这篇文章中得到答案,因为我正在寻找同样的解决方案。在
到目前为止,我在网上找到的只是this Amazon Forum post说这是不可能的。 如果我找到答案,我会回来贴出来的。在
相关问题 更多 >
编程相关推荐