How to get product information from amazon based on url only?

I have a link to a product page, on amazon. How to get all the information (photos, price, etc.) in my ruby ​​program, just using this link?

+3
source share
5 answers

Here, the list of supported URLs disclosed by Amazon for their API, API for product advertising, will be displayed only after parsing these URLs and receiving ASIN

http://amazon./gp/product/*

http://amazon.//dp/

http://amazon./dp/*

http://amazon./o/ASIN/*

http://amazon./gp/offer-listing/*

http://amazon.//ASIN/

http://amazon./gp/product/images/*

http://amazon./gp/aw/d/*

http://www.amzn.com/ *

http://amzn.com/ *

+6

, Nokogiri hpricot HTML. , , , ( , Amazon HTML), , - , API Amazon Product.

+1

: HTML. . Ruby ( ), HTML.

hpricot, , , .

0
source

You should use the Ruby / AWS library (for it Google, my karma is not high enough to allow external links ...). It was written just for that.

You may need to use the built-in search to find the item you are looking for. After that, the API provides access to images, links, and all useful information.

0
source

Source: https://habr.com/ru/post/1708952/


All Articles