Skip to content

Tweepy cursor not reaching its limit #1887

Answered by Harmon758
Lueesla asked this question in Questions
Discussion options

You must be logged in to vote

The IdIterator that Cursor returns when used with API.home_timeline stops when it receives a page with no results. This is most likely what's happening, since the default count for the endpoint is 20 and:

The value of count is best thought of as a limit to the number of tweets to return because suspended or deleted content is removed after the count has been applied.

https://developer.twitter.com/en/docs/twitter-api/v1/tweets/timelines/api-reference/get-statuses-home_timeline

This is a limitation of this Twitter API endpoint, as there's not another good way to determine when to stop paginating.

However, you can pass a higher count (e.g. 100 if that works for you, up to 200) to the endpo…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@Lueesla
Comment options

@Harmon758
Comment options

@Lueesla
Comment options

@Lueesla
Comment options

Comment options

You must be logged in to vote
2 replies
@Lueesla
Comment options

@Harmon758
Comment options

Answer selected by Harmon758
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question This is a question API This is regarding Twitter's API
2 participants