Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Killed by rate limit.
require "twitter"
client = Twitter::REST::Client.new do |config|
config.consumer_key = "hoge"
config.consumer_secret = "fuga"
config.access_token = "piyo"
config.access_token_secret = "moge"
end
File.open("website.txt", "w") do |file|
client.friend_ids.each do |id|
user = client.user(id)
website = user.website || "none"
file.puts "#{user.name}(@#{user.screen_name}):#{website}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.