Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import string
- import warnings
- warnings.simplefilter('ignore', DeprecationWarning)
- import twitter
- username='alexmarcond'
- password='g5n4th3u'
- api = twitter.Api(username, password)
- status = api.GetFriendsTimeline()
- twitterSize = 1;
- i = 0;
- buffer = ""
- for s in status:
- i = i+1
- buffer += (s.user.screen_name + "> " + s.text)[:20]
- if i == twitterSize:
- break
- print buffer
Add Comment
Please, Sign In to add comment