SHARE
TWEET

Untitled

a guest May 22nd, 2017 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # -*- coding: utf-8 -*-
  2.  
  3. import twitter
  4. COUNT = 200
  5. i = 0
  6. j=0
  7. api = twitter.Api(username = "gabs48", password = "alembique")
  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
  17.     i = i + 1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top