if(widgetStylesPrinted != true) {document.write('');}var widgetStylesPrinted = true;var content = '
Python-Twitter Hello world
python
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]
';document.write(content);