it seems that Boto is the official Amazon API module for Python, and this one is for Tornado, so here is my questions:
- does it offer pagination (requests only 10 products, since amazon offers 10 products per page, then i want only to get the first page…), then how (sample code?)
- how then to parse the product parse, i’ve used python-amazon-simple-product-api but sadly it dont offer pagination, so all the offers keep iterating.
generally, pagination is performed by the client requesting the api. To do this in boto, you’ll need to cut your systems up. So for instance, say you make a call to AWS via boto, using the get_all_instances def; you’ll need to store those somehow and then keep track of which servers have been displayed, and which not. To my knowledge, boto does not have the LIMIT functionality most dev’s are used to from MySQL. Personally, I scan all my instances and stash them in mongo like so:
You could also wrap these in try/catch blocks. Up to you. Once you get them out of boto, should be trivial to do the cut up work.
— Jess