Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- import twitter
- COUNT = 50
- i = 0
- j=0
- api = twitter.Api(username = "gabs48", password = "")
- statuses = api.GetFriendsTimeline(count=COUNT)
- while (j<20)&(i<COUNT):
- if (statuses[i].user.name == "SNCB - NMBS - BeRail"):
- print str(j) + ")"
- print "De: " + statuses[i].user.name
- print "Date: " + statuses[i].GetCreatedAt()
- print "Message: " + statuses[i].text + "\n\n"
- j = j + 1
- i = i + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement