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 8772149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:58:13+00:00 2026-06-13T17:58:13+00:00

I am writing a simple Tweepy application for fun, but am really limited to

  • 0

I am writing a simple Tweepy application for fun, but am really limited to how many API calls I have (anywhere between 150 and 350). So to account for this I am looking for ways to cut calls. Tweepy has a cursor system built in. Eg:

# Iterate through all of the authenticated user's friends
for follower in tweepy.Cursor(api.followers).items():
    follower.follow()

For those who are familiar with this library. Would the above example be more or less efficient than simply…

for follower in api.followers_ids():
    api.follow(follower)

Are there any other advantages apart from simplicity to use the Cursor method over an iterative method?

Thanks in advance.

  • 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-13T17:58:14+00:00Added an answer on June 13, 2026 at 5:58 pm

    If I remember correctly from my use of tweepy, a Cursor object automatically paginates over n many elements… For instance, if there are 10,000 results, and Twitter returns (say) 200 at a time, then using the Cursor will return all 10,000 but will have to make a call to keep retrieving the next ones.

    OTOH, api.followers_ids() only returns the first “page” of results, so maybe the first 100 or whatever.

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

Sidebar

Related Questions

I've been writing simple JSON schemas but I ran into an API input call
i m writing simple application involving a server and many clients at time. i
I'm writing simple program to communicate between smart devices and I receive 11001 when
I'm writing simple GUI using wxPyhon and faced some problems. My application does simple
This is a really basic ruby gems question. I'm familiar with writing simple ruby
While writing a simple server-client application, this question came in my mind. When someone
I am writing simple blog with CodeIgniter and DataMapper and I have problem with
I'am writing simple app. I want to run this app on many android devices
Writing a simple program that will find exact duplicate files on my computer, but
I writing some simple application that will look for some message ( sms message

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.