Skip to content

Simple Python Twitter Module

January 22, 2009

Here (download) is a very simple Python Twitter module.  It doesn’t implement the entire API, just allows tweets with URL shortening.  The module can be incorporated into your project or used to tweet from the command line:

echo "My latest tweet is very interesting!" | ./ -uUSERNAME -pPASSWORD

To enable URL shortening, just surround your URL with periods like this:

echo "My blog is at ….…. Visit often!" |  ./ -uUSERNAME -pPASSWORD

I picked up the core of this code from Robert Dudley (TweetCLI).  I made some modifications and he granted permission for me to pass everything on.  Robert has started a Google Code Project to house the latest at:

I hope you find this useful!

P.S. You can follow me at DrSkippy27 on twitter.

No comments yet

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: