亚马逊搜索 API [英] Amazon Search API

查看:38
本文介绍了亚马逊搜索 API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种使用 Ruby 或 Python 访问亚马逊搜索结果(给定查询)的好方法?我一直在寻找 API,发现了一个 Product Advertising API,它似乎与搜索不同.

Is there a good way to access amazon search results (given a query) in Ruby or Python? I've been looking around for APIs and found a Product Advertising API which seems to not be the same as search.

我不想在给定查询(嵌入在 url 中)的情况下抓取亚马逊搜索网页.

I would prefer not to have to scrape the amazon search web-page given a query (embedded in a url).

推荐答案

我使用 Amazon API 已经好几年了,我承认他们似乎试图隐藏他们对常规附属产品所做的事情,例如 Amazon搜索,就好像他们不希望您使用 API 或至少让它变得困难一样.

I have been working with Amazon API for several years and I will admit that they seem to try to hide what they are doing with their regular affiliate stuff, like Amazon Search, as if they don't want you to use the API or at least make it difficult.

因此,在您的联属网络营销信息中心,点击顶部的产品 API"标签.

So, in your affiliate dashboard, click the 'Product API' tab at the top.

接下来,您需要创建公钥和私钥.如果未创建和设置这些,您将无法访问 API.另请注意,即使 Amazon 确实有 RESTful API,它也需要回调,无论您使用何种语言.(除非您打算使用 SOAP)一旦这些被创建,它应该会在您的附属仪表板中为您打开一些新选项.

Next, you will need to create your public and private keys. If those aren't created and set up, you won't be able to access the API. Also be aware that even though Amazon does have a RESTful API, it requires a callback, regardless of the language you use. (Unless you're going to use SOAP) Once those are created, it should open up some new options for you in you affiliate dashboard.

最后,Amazon 提供了 wazoo 的代码示例,但我无法证明 Ruby 或 Python 的代码示例是否有任何好处(就像我使用 cURL 和 php 所做的那样),但无论如何它应该为您提供一个很好的起点.去这里:http://aws.amazon.com/code/Product%20Advertising%20API?_encoding=UTF8&jiveRedirect=1

Finally, Amazon has code samples out the wazoo, but I cannot testify that either the Ruby or Python ones are any good (as I have done mine with cURL and php), but it should give you a good starting point anyway. Go here: http://aws.amazon.com/code/Product%20Advertising%20API?_encoding=UTF8&jiveRedirect=1

我确实在代码示例和文档中看到这里列出了 python 和 ruby​​.请注意,亚马逊喜欢经常更改内容,有时甚至不会通知.但是我在做这部分时确实注意到了一个关于 AWS 的新节点 js 库的部分……太棒了.亚马逊确实做得很好.

I do see python and ruby listed here in the code samples and docs. Be aware Amazon likes to change things frequently, sometimes without notice. But I did just notice while doing this a section about a new node js library for AWS...sweet. Amazon for all it bs does do a good job.

这篇关于亚马逊搜索 API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆