Created
September 18, 2015 23:42
-
-
Save rendon/94dc3b118c58226420b0 to your computer and use it in GitHub Desktop.
Get follower IDs of user.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'twitter' | |
client = Twitter::REST::Client.new do |config| | |
config.consumer_key = "..." | |
config.consumer_secret = "..." | |
config.access_token = "..." | |
config.access_token_secret = "..." | |
end | |
user = 123 | |
cursor = client.follower_ids(user, count: 5000) | |
cursor.each do |item| | |
puts item | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment