Guest User

Untitled

a guest
Jun 20th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #!/usr/bin/ruby
  2.  
  3. require 'rubygems'
  4. require 'twitter'
  5.  
  6. username = "xxxxxxxx"
  7. password = "xxxxxxxx"
  8.  
  9. auth = Twitter::HTTPAuth.new(username, password)
  10. twit = Twitter::Base.new(auth)
  11.  
  12. followers = twit.followers.collect{|follower| follower.screen_name}
  13. friends = twit.friends.collect{|friend| friend.screen_name}
  14.  
  15. lonesome_followers = followers - friends
  16. assholes = friends - followers
  17.  
  18. puts "You are following these people, but they don't follow you:"
  19. puts assholes
  20.  
  21. puts "These people are following you, but you don't follow them:"
  22. puts lonesome_followers
Add Comment
Please, Sign In to add comment