Skip to content

Instantly share code, notes, and snippets.

@kblake
Created September 19, 2010 04:30
Show Gist options
  • Save kblake/586390 to your computer and use it in GitHub Desktop.
Save kblake/586390 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'twitter'
require 'highline/import'
username = ask("Please enter twitter name")
unless username.empty?
size = 50 #limit to 50 followers arbitrarily
ids = Twitter.follower_ids(username)[0..size-1]
ids.each do |id|
user = Twitter.user(id)
count = user.followers_count
puts "#{user.name}: (#{count}) " + "*" * count
puts
end
end
puts "Goodbye!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment