Making the Bird Tweet Using Python

After taking another look at Python I am quickly coming to love it, as an “exercise” in re-learning python I decided to write a very simple command line “tweeter” this uses the Twitter API to update your twitter status, extending from the ”update twitter in a single line

You can grab a copy of the script from here:

UPDATE 24/03/2011:Oauth version here

Example usage:

./ -u username -p password -t your tweet goes here

If you want to parse the JSON data normally returned after submitting a new tweet simply add the -j flag.

If you are prompted for a username and password when running this script the username and password supplied using the -u and -p flags was incorrect.