Python TwitPic

Thursday, 29 January 2009

Today I created a dead simple python lib called python-TwitPic. It makes use of the extremely simple API that http://twitpic.com/ has to offer offer.

Check out the code here:

http://code.google.com/p/python-twitpic/

Usage:

1
2
3
4
5
import twitpic
twit = twitpic.TwitPicAPI('USERNAME', 'PASSWORD')
twitpic_url = twit.upload('FILE_LOCATION')
# twitpic_url = twit.upload('FILE_LOCATION', message='messages rock!')
print twitpic_url

Enjoy!

blog comments powered by Disqus