Guest User

Untitled

a guest
Jun 18th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. import os
  2. import string
  3. import warnings
  4. warnings.simplefilter('ignore', DeprecationWarning)
  5. import twitter
  6.  
  7. buffer = ""
  8.  
  9. def printcustomf(sting, num):
  10. buffer = buffer + string[:num]
  11.  
  12. #def printcustom(string, num):
  13. # print string[0:num]
  14.  
  15. username='alexmarcond'
  16. password='g5n4th3u'
  17.  
  18. api = twitter.Api(username, password)
  19. status = api.GetFriendsTimeline()
  20. twitterSize = 1;
  21. i = 0;
  22.  
  23. for s in status:
  24. i = i+1
  25. printcustomf(s.user.screen_name, 20)
  26. # printcustom(s.text, 20)
  27. if i == twitterSize:
  28. break
  29. print buffer
Add Comment
Please, Sign In to add comment