bear / python-twitter

A Python wrapper around the Twitter API.
Apache License 2.0
3.41k stars 957 forks source link

GetRetweeters not returning next Cursor #640

Open nirav0999 opened 4 years ago

nirav0999 commented 4 years ago

To collect more than the last 100 retweeters of a tweet. I used the below code Code Based on https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-retweeters-ids and the documentation of GetRetweeters function The function should return a next_cursor_value to get the next 100 retweeters of the tweet. I tested this on a tweet with 11k retweets, however, it only returned 94 retweeter ids and NO further cursor value. Screenshot from 2019-11-15 17-03-06

Has twitter API stopped Supporting Cursor iteration? Is there a workaround to get the full list of retweeters for a tweet?

croda commented 4 years ago

I have the same problem, next_cursor is always 0 in calls to https://api.twitter.com/1.1/statuses/retweeters/ids.json even when tweets have very large numbers of retweeters. If anyone has a solution to this I would be happy to hear. Thank you!

croda commented 4 years ago

Ok, I found an answers (not the one I like): Apparently the free API only allows to retrieve at most 100 retweeters, see https://twittercommunity.com/t/i-can-not-get-next-cursor-from-statuses-retweeters-ids-json/109939/6.