The Easiest Way to Save and Share Code Snippets on the web

Python-Twitter Hello world

python

posted: Feb, 11th 2009 | jump to bottom

from twitter import *
 
username='myusername'
password='mypwd'
 
#scrierea unui nou status
api=twitter.Api()
api=twitter.Api(username,password)
status=api.PostUpdate('testing twitter with python-twitter')
 
 
#listeaza postarile recente ale unui prieten (following)
statuses=api.GetUserTimeline('somefriend')
print [status.text for status in statuses]
31 views