Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon ECS API to fetch 1000 top selling books

I need the API to fetch the top selling books on Amazon. By default it only fetches the top 10 items, but I need more than 10, near about 1000 items content by using single hit.

OR

I need the way to scrape the 1000 top selling books using the Amazon ECS API.

OR

Is there any way except the Amazon API to scrape all of the top selling books on Amazon?

like image 733
Deepak Lamichhane Avatar asked Aug 03 '11 18:08

Deepak Lamichhane


1 Answers

To get the 100 bestselling books you have to specify the ItemPage parameter:

http://ecs.amazonaws.com/onca/xml?
Service=AWSECommerceService&
AWSAccessKeyId=[AWS Access Key ID]&
Operation=ItemSearch&
BrowseNode=17&
SearchIndex=Books&
ItemPage=2
&Sort=salesrank
&Timestamp=[YYYY-MM-DDThh:mm:ssZ]
&Signature=[Request Signature]

Problem: The maximum ItemPage number that can be returned is 10. So you cant get past 100 books.

Reference: http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/index.html?ItemSearch.html

like image 52
Skomski Avatar answered Oct 20 '22 21:10

Skomski