Skip to content

Instantly share code, notes, and snippets.

@jerodsanto
Created May 12, 2009 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jerodsanto/110527 to your computer and use it in GitHub Desktop.
Save jerodsanto/110527 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'twitter'
auth = Twitter::HTTPAuth.new('username', 'password')
base = Twitter::Base.new(auth)
guilty = base.friend_ids - base.follower_ids
puts "There are #{guilty.size} People you follow who do not follow you"
guilty.each do |user_id|
user = base.user(user_id)
puts "#{user.name} follows #{user.friends_count} and has #{user.followers_count} followers."
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment