Skip to content

Instantly share code, notes, and snippets.

@rendon
Created September 18, 2015 23:42
Show Gist options
  • Save rendon/94dc3b118c58226420b0 to your computer and use it in GitHub Desktop.
Save rendon/94dc3b118c58226420b0 to your computer and use it in GitHub Desktop.
Get follower IDs of user.
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