Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8757919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:25:01+00:00 2026-06-13T14:25:01+00:00

it seems that Boto is the official Amazon API module for Python , and

  • 0

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.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:25:03+00:00Added an answer on June 13, 2026 at 2:25 pm

    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:

    for r in conn.get_all_instances():        # loop through all reservations
       groups = [g.name for g in r.groups]    # get a list of groups for this reservation
       for x in r.instances:                  # loop through all instances with-in reservation
          groups = ','.join(groups)         # join the groups into a comma separated list 
          name = x.tags.get('Name','');       # get instance name from the 'Name' tag
    
          new_record = { "tagname":name, "ip_address":x.private_ip_address, 
                          "external_ip_nat":x.ip_address, "type":x.instance_type,
                          "state":x.state, "base_image":x.image_id, "placement":x.placement, 
                          "public_ec2_dns":x.public_dns_name,
                          "launch_time":x.launch_time, "parent": ObjectId(account['_id'])}
          new_record['groups'] = groups
          systems_coll.update({'_id':x.id},{"$set":new_record},upsert=True)
          error = db.error()
          if error != None:
               print "err:%s:" % str(error)
    

    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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It seems that this handy Quick Access window does not show the items available
It seems that the unittest module has been changed a lot in Python 2.7
Seems that This will be an easy question for you but this problem is
It seems that often I find that my code when moving either from one
It seems that css animations on firefox are pixelating the edges of elements: Here
It seems that i have this weird behavior in my Web Client My application
It seems that I'm doing here something terribly wrong. Can you help me? The
It seems that input redirection in gdb does not work in Cygwin e.g (gdb)
Seems that a site I made for fun does not like to work in
it seems that i got a bug in python: (Python 2.7.3 (default, Apr 10

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.