Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make pagination :( #7

Closed
abdelouahabb opened this issue Oct 17, 2012 · 4 comments
Closed

make pagination :( #7

abdelouahabb opened this issue Oct 17, 2012 · 4 comments

Comments

@abdelouahabb
Copy link

hi
i cant make a pagination, amazon returns 10 pages and this is not a good solution when it's blocking code :(
hope this features will be enabled.

@yoavaviram
Copy link
Owner

Hi @abdelouahabb,

I don't understand the issue. The library handles pagination for you. It returns all the items from all the pages Amazon returns. Keep in mind Amazon has a limit on the total number of items it allows to retrieve and there is no way around this limitation. If you don't want all the pages, you can use the api.search_n() method, and specify exactly how many items you'd like to retrieve. If this is not what you are looking for, can you please explain the relevant scenario?

Yoav.

@abdelouahabb
Copy link
Author

Thank you :)
am sorry i dident know about the api.search_n()
now after used it, the response is really fast, i put 10
test = api.search_n(10, Keywords='iphone 3gs', SearchIndex='All')
and it took faster.
what i want to do is to give to client a price comparison from amazon when another client upload a new product with price.
another question: any projects to support Tornado (make the code asynchronous)?

@yoavaviram
Copy link
Owner

No plans, feel free to fork and add support!

@abdelouahabb
Copy link
Author

ok, thank you 👍
i'll try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants