Twitter API return a list of followers longer than 70,000

1

Using TwitterOauth, I am trying to get a list of followers of an account with a large list of followers. As the API returns no more than 5000 users per request, following the advice of other answers, try to use cursors, but now I run into the problem that I can only do "15 requests per window", so I can only get the latest ones 70,000 followers I thought about saving the cursor and making calls 15 minutes later, but the API returns the most recent follower first, so saving the cursor makes it inaccurate. What can I do to return a list of followers when it is larger than 70,000?

    
asked by Pablo 19.08.2016 в 14:49
source

1 answer

2

You can use GET users / show to get the number of followers ( followers_count ) .

With this information from one execution to another, you know whether you should read the first page or not from the list of followers.

If you must consult the first page, load only those that are not repeated.

Then you go to the pending page of your last execution. This page may contain repeated information that you should not upload (the displacement produced by the new followers). Then you continue loading the pages, until you reach the limit of that execution.

And you keep the next page that you must read to use in your next execution.

    
answered by 03.09.2016 / 05:10
source