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
- buffer = ""
- def printcustomf(sting, num):
- buffer = buffer + string[:num]
- #def printcustom(string, num):
- # print string[0:num]
- username='alexmarcond'
- password='g5n4th3u'
- api = twitter.Api(username, password)
- status = api.GetFriendsTimeline()
- twitterSize = 1;
- i = 0;
- for s in status:
- i = i+1
- printcustomf(s.user.screen_name, 20)
- # printcustom(s.text, 20)
- if i == twitterSize:
- break
- print buffer
Add Comment
Please, Sign In to add comment