Advertisement
Guest User

Untitled

a guest
May 7th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #!/usr/bin/python
  2. # -*- coding:Utf-8 -*-
  3.  
  4. import twitter
  5.  
  6. if __name__ == "__main__":
  7. api = twitter.Api(username="zoubiboulba", password="hophophop")
  8.  
  9. my_friends = api.GetFriends()
  10. my_followers = api.GetFollowers()
  11.  
  12. # get name of my followers
  13. my_followers = [i.screen_name for i in my_followers]
  14.  
  15. for i in my_friends:
  16. if i.screen_name not in my_followers:
  17. print "bye bye", i.screen_name
  18. api.DestroyFriendship(i.screen_name)
  19.  
  20. print "done"
  21. # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement