Skip to content

Instantly share code, notes, and snippets.

@domwom
Forked from jerodsanto/no_follow_back.rb
Created August 16, 2009 15:27
Show Gist options
  • Save domwom/168647 to your computer and use it in GitHub Desktop.
Save domwom/168647 to your computer and use it in GitHub Desktop.
no_follow_back.rb
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} aka #{user.screen_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