Question

I'm trying to use the Python wrapper for the Amazon Advertising API (http://pypi.python.org/pypi/python-amazon-product-api/), but when I try to do an ItemSearch and try to access the 11th page, I get something along the lines of:

The value you specified for ItemPage is invalid. ... between 1 and 10

I know in order to avoid this problem, I could just perform another search query, but is there a way to start the search query on a certain page? Or is there a way (for books) to set a boundary for the publishing year? I just need a way so that I could make my search results smaller, so that I don't run into this error. Right now this is how I'm calling it:

results = api.item_search('Books', ResponseGroup='Images,Large', 
                              AssociateTag='qwerty', Publisher=kwd)

Where kwd is just a publisher name obtained from a file.

Was it helpful?

Solution

Amazon will only give you the first 10 pages (as of API version 2011-08-01). You could run slightly different searches to get more results, but these would also be restricted to the first 10 pages.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top