如何以编程方式从亚马逊网站查找价格?

发布于 2024-08-06 02:26:45 字数 1807 浏览 7 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

黯然 2024-08-13 02:26:46

是的,技术上合适的 API 是产品广告 API,使用 ItemLookup/ItemSearch 操作或 Seller* 操作。

https://affiliate-program.amazon.com/gp/advertising /api/detail/main.html

我还建议您检查此 API 的许可协议,特别是第 4 (i) 条。

Yes, the technically appropriate API is the Product Advertising API, using the ItemLookup/ItemSearch operations or the Seller* operations.

https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html

I would also advise you to check the licensing agreement for this API, notably clause 4 (i).

情绪失控 2024-08-13 02:26:46

您可以使用 Amazon Marketplace Web 服务 (apidescription)

此服务可以将所有可用优惠分组到“存储桶”中并显示每个桶的最低价格。

每个桶都有一个独特的组合:

  • 子条件(全新、类似新品、非常好、良好、可接受)
  • 配送渠道(FBA 或商户配送)
  • 国内发货(正确、错误、未知)
  • 运输时间(0-2 天、3-7 天 )天、8-13 天、14 天或更长时间)
  • 卖家积极反馈评级(98-100%、95-97%、90-94%、80-89%、
    70-79%,低于70%,刚刚推出)

    示例结果

有人制作了一个非常酷的 API 演示 此处

You can use the Amazon Marketplace Web Service (api, description)

This service can group all of the available offers into ‘buckets’ and shows the lowest price from each bucket bucket.

Each bucket has a unique combination of:

  • Sub-Condition (New, Like New, Very Good, Good, Acceptable)
  • FulfillmentChannel (FBA or Merchant-Fulfilled)
  • ShipsDomestically (True, False, Unknown)
  • ShippingTime (0-2 days, 3-7 days, 8-13 days, 14 or more days)
  • SellerPositiveFeedbackRating (98-100%, 95-97%, 90-94%, 80-89%,
    70-79%, Less than 70%, Just launched)

    sample results

Someone made a really cool demo of the API here

一生独一 2024-08-13 02:26:46

我们无法使用 API 获得整个亚马逊产品。他们对 API 的使用做出了某些限制,使其仅与广告用例更相关。

We cannot get the entire amazon products using API.They had made certain restrictions to the usage of API such that it would be more relevant to advertising use case only.

说好的呢 2024-08-13 02:26:46

我编写了那个小 python 模块来实现这样的任务: https://github.com/iMilnb/awstools/blob/master/mods/awsprice.py

基本上,它从亚马逊网站获取价格并将其转换为漂亮且可解析的 python dict< /代码>。

我编写了两个示例函数,展示了如何使用生成的 dict 以及 CSV 转换器根据各种条件转储实例价格。

I wrote that small python module to achieve such a task: https://github.com/iMilnb/awstools/blob/master/mods/awsprice.py

Basically, it fetches the prices from Amazon's website and convert them to a nice and parsable python dict.

I wrote two example functions that show how to use the resulting dict to dump an instance price on various terms along with a CSV converter.

纵山崖 2024-08-13 02:26:46

有一个对类似问题的回复,其中列出了包含价格的所有.js文件,它们几乎不是 JSON 文件(仅需要删除 callback(...); 语句)。

以下是 Linux 点播价格的示例: http://aws-assets-pricing-prod.s3.amazonaws.com/pricing/ec2/linux-od.js

(获取完整列表直接回复

There is a reply to a similar question which lists all the .js files containing the prices, which are barely JSON files (with only a callback(...); statement to remove).

Here is an exemple for Linux On Demand prices : http://aws-assets-pricing-prod.s3.amazonaws.com/pricing/ec2/linux-od.js

(Get the full list directly on that reply)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文