首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >通过amazon产品api的子类别的销售排名(最好是使用瓶颈的python )

通过amazon产品api的子类别的销售排名(最好是使用瓶颈的python )
EN

Stack Overflow用户
提问于 2014-08-26 19:21:48
回答 1查看 1.4K关注 0票数 2

我正在尝试检索Product子类别销售排名(如果适用),这是我用Python编写的脚本

代码语言:javascript
复制
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

我从亚马逊得到的回应

代码语言:javascript
复制
..............
................
<SalesRank>12677</SalesRank>
  <SmallImage>
    <URL>http://ecx.images-amazon.com/images/I/31Nk86so5xL._SL75_.jpg</URL>
    <Height Units="pixels">75</Height>
    <Width Units="pixels">26</Width>
  </SmallImage>
..........
..........

实际的响应可以在这里看到: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

web上的产品详细信息:

代码语言:javascript
复制
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我只能获得一个排名(12,677),但我如何检索其他两个排名。

EN

回答 1

Stack Overflow用户

发布于 2014-11-25 07:38:56

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

到目前为止,我在网上找到的所有东西都是this Amazon Forum post,上面说这不可能实现。如果我找到了答案,我会回来张贴的。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25504610

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档