sferik / twitter-ruby

A Ruby interface to the Twitter API.
http://www.rubydoc.info/gems/twitter
MIT License
4.58k stars 1.31k forks source link

get followers with :count option #915

Closed matthieu80 closed 1 year ago

matthieu80 commented 6 years ago

Here is how I try to fetch a specific number of followers: @client.followers('screen_name', count: 50) the count option is ignored.

Any idea? Thank you

duncangarde commented 6 years ago

I've had the same issue using friends: @client.friends(twitter_id, cursor: -1, count: 20) still get all results up to 200

matthieu80 commented 6 years ago

I gave up the "followers" method. I use "follower_ids", then the "lookup" one. It is more flexible, and the rate limit is harder to reach, so only benefits. @duncangarde, maybe the "friend_ids" method will help you out?

duncangarde commented 6 years ago

@matthieu80 thanks! Yeah I have moved to that and it works. Appreciate it.

D