通过amazon产品api(最好在python中使用Butternose)对子类别的销售排名

2024-10-04 03:29:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图检索产品子类别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

原始页面(即详细页面url)url: http://www.amazon.com/Luma-Comfort-EC45S-Evaporative-Cooling/dp/B007SNQ4FM%3FSubscriptionId%3DAKIAICPZU6FE2WKAQMZQ%26tag%3Drelierscom-20%26linkCode%3Dxm2%26camp%3D2025%26creative%3D165953%26creativeASIN%3DB007SNQ4FM

网站上的产品详细信息:

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),但是我如何才能检索到其他两个排名呢。在


Tags: tostoreinhttpamazonhomestring产品
1条回答
网友
1楼 · 发布于 2024-10-04 03:29:43

我也希望在这篇文章中得到答案,因为我正在寻找同样的解决方案。在

到目前为止,我在网上找到的只是this Amazon Forum post说这是不可能的。 如果我找到答案,我会回来贴出来的。在

相关问题 更多 >