Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/ruby
- require 'rubygems'
- require 'twitter'
- username = "xxxxxxxx"
- password = "xxxxxxxx"
- auth = Twitter::HTTPAuth.new(username, password)
- twit = Twitter::Base.new(auth)
- followers = twit.followers.collect{|follower| follower.screen_name}
- friends = twit.friends.collect{|friend| friend.screen_name}
- lonesome_followers = followers - friends
- assholes = friends - followers
- puts "You are following these people, but they don't follow you:"
- puts assholes
- puts "These people are following you, but you don't follow them:"
- puts lonesome_followers
Add Comment
Please, Sign In to add comment