twitter follower
I want twitter's follower ID and follower Name.
A User have fowllower have 30,000 or more.
Error output 『Rate limit exceeded (Twitter::Error::TooManyRequests)』.
Please coached me.
require "rubygems"
require "twitter"
target = "hogehoge"
client = Twitter::REST::Client.new do |config|
config.consumer_key = "XXXXX"
config.consumer_secret = "XXXX"
config.access_token = "XX-XXXX"
config.access_token_secret = "XXXXX"
end
followers_list = client.followers(target)
friends_list = client.friends(target)
followers_list.each{|follower|
puts follower.screen_name
puts follower.name
}