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

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

问题描述

在Ruby或Python中是否有一种很好的方法来访问亚马逊搜索结果(给出查询)?我一直在寻找API,并发现了一个与搜索不同的产品广告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.

我希望不必抓取亚马逊搜索给定查询的网页(嵌入网址中)。

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

推荐答案

我已经使用Amazon API已有几年了,我承认他们似乎试图隐藏自己在做什么。与他们常规的会员商品(例如Amazon Search)一起使用,好像他们不想让您使用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,则将无法访问该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.

最后,亚马逊提供了代码示例毫无疑问,但是我无法证明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 ... sweet的新节点js库的部分。亚马逊的所有bs都做得很好。

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天全站免登陆