Ive been using the python-twitter for some stuff and Ive noticed that the actual version doesnt support the "source" parameter and also doenst support identi.ca. For this reason Ive spent some minutes to do a hack. This version includes a new function named "SetSource" that allows you to define your source "…from blabla" that will be display on twitter and introduces the new parameter "twitterserver" to __init__. This parameter is optional and the default value is twitter.com. identi.ca is another microblogging service based on laconica that supports the entire twitter API. Great step!!

e.g. for SetSource:

# import twitter
# api = twitter.Api(username=’me’,password=’secret’,twitterserver=’identi.ca/api’)     // for identi.ca, default=twitter.com
# api.SetSource(‘dilella’)
# api.PostUpdate(‘it works’)

Download twitter.py!

  • Share/Bookmark