Guest User

Untitled

a guest
Oct 24th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #!/usr/bin/env python
  2. import twitter
  3. from sets import Set
  4.  
  5. username = 'your_username'
  6. password = 'your_password'
  7. api = twitter.Api(username=username, password=password)
  8.  
  9. following = api.GetFriends()
  10. friendNames = Set()
  11. for friend in following:
  12. friendNames.add(friend.screen_name)
  13.  
  14. for ff in ['SecBarbie', 'BillBrenner70', 'SteveD3', 'SteveMcGrath']:
  15. if (not ff in friendNames):
  16. api.CreateFriendship(follower.screen_name)
Add Comment
Please, Sign In to add comment