Skip to content

@clemens /evil.rb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
require 'open-uri'
twitter_url = "https://api.twitter.com/1/followers/ids.json?screen_name=%s"
follower_ids = %w(travisci joshkalderimis konstantinhaase svenfuchs).map do |screen_name|
Array(eval(open(twitter_url % screen_name).read.match(/"ids":(\[[0-9,]+\])/)[1])) rescue []
end.flatten.uniq
puts follower_ids.length
require 'json'
require 'open-uri'
twitter_url = "https://api.twitter.com/1/followers/ids.json?screen_name=%s"
follower_ids = %w(travisci joshkalderimis konstantinhaase svenfuchs).map do |screen_name|
Array(JSON.parse(open(twitter_url % screen_name).read)['ids']) rescue []
end.flatten.uniq
puts follower_ids.length
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.