sant0sk1 (owner)

Forks

Revisions

gist: 110527 Download_button fork
public
Public Clone URL: git://gist.github.com/110527.git
Embed All Files: show embed
no_follow_back.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
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