Advertisement
Guest User

Untitled

a guest
May 22nd, 2017
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2.  
  3. import twitter
  4. COUNT = 50
  5. i = 0
  6. j=0
  7. api = twitter.Api(username = "gabs48", password = "")
  8. statuses = api.GetFriendsTimeline(count=COUNT)
  9. while (j<20)&(i<COUNT):
  10.     if (statuses[i].user.name == "SNCB - NMBS - BeRail"):
  11.         print str(j) + ")"
  12.         print "De: " + statuses[i].user.name
  13.         print "Date: " + statuses[i].GetCreatedAt()
  14.         print "Message: " + statuses[i].text + "\n\n"
  15.         j = j + 1
  16.     i = i + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement