Advertisement
Guest User

Untitled

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