Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- # -*- coding:Utf-8 -*-
- import twitter
- if __name__ == "__main__":
- api = twitter.Api(username="zoubiboulba", password="hophophop")
- my_friends = api.GetFriends()
- my_followers = api.GetFollowers()
- # get name of my followers
- my_followers = [i.screen_name for i in my_followers]
- for i in my_friends:
- if i.screen_name not in my_followers:
- print "bye bye", i.screen_name
- api.DestroyFriendship(i.screen_name)
- print "done"
- # vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement