Skip to content

Commit

Permalink
Merge pull request #1761 from darknessest/patch-1
Browse files Browse the repository at this point in the history
fix pagination for tweet counts
  • Loading branch information
Harmon758 committed Jan 9, 2022
2 parents f9a722b + 6bfdc75 commit c11556a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tweepy/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ def __next__(self):

# https://twittercommunity.com/t/why-does-timeline-use-pagination-token-while-search-uses-next-token/150963
if self.method.__name__ in ("search_all_tweets",
"search_recent_tweets"):
"search_recent_tweets",
"get_all_tweets_count"):
self.kwargs["next_token"] = pagination_token
else:
self.kwargs["pagination_token"] = pagination_token
Expand Down

0 comments on commit c11556a

Please sign in to comment.