Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View evil.rb
1 2 3 4 5 6 7 8 9
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
View evil.rb
1 2 3 4 5 6 7 8 9 10
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.