python-twitch-client icon indicating copy to clipboard operation
python-twitch-client copied to clipboard

get_followers does not return cursor

Open pat-ricochet opened this issue 8 years ago • 3 comments

It appears that channel.get_followers does not return the cursor. So the maximum number of followers you can get is 100. maybe add a get_all_followers function or just return the entire response which would include the cursor.

pat-ricochet avatar Jul 16 '17 13:07 pat-ricochet

Just realized I can use offset, still may want to return cursor in the future so it can be used as an option

pat-ricochet avatar Jul 16 '17 14:07 pat-ricochet

Hi, first of all thank you @tsifrer for creating this library, I just tried it for an hour and its very nice:). If you find the time, I'd like to suggest another feature: a function that automatically iterates over pages (e.g. for followers) and tries to retrieve all results while respecting the rate limits of the twitch API. This would be super useful.

cschwem2er avatar Nov 26 '17 13:11 cschwem2er

This lib actually really does need cursor because Twitch's API only allows offset to a max of 1600. After that they tell you to use a cursor: https://github.com/justintv/Twitch-API/issues/647

So you could only ever get 1600 followers max for a channel without a cursor.

thetylerhayes avatar Mar 02 '18 23:03 thetylerhayes