Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import twitter
- from sets import Set
- username = 'your_username'
- password = 'your_password'
- api = twitter.Api(username=username, password=password)
- following = api.GetFriends()
- friendNames = Set()
- for friend in following:
- friendNames.add(friend.screen_name)
- for ff in ['SecBarbie', 'BillBrenner70', 'SteveD3', 'SteveMcGrath']:
- if (not ff in friendNames):
- api.CreateFriendship(follower.screen_name)
Add Comment
Please, Sign In to add comment