Command Line Posting to Identi.ca

Posted 11 Dec 2010 to identi.ca and has Comments

I looked around for a simple command line program to post to identi.ca but I couldn’t find one that: 1. worked 1. auto-shortened URL’s 1. was executable and not a giant overkill library

Naturally, I then threw something simple together in Python (script below). The script will auto-shorten URL’s (using ur.ly, which seemed to have the simplest API) and doesn’t require quoting your post. After putting your username/password at the top of the file:

$> ./status This is an example post with a url in it http://google.com
Posted: This is an example post with a url in it http://ur.ly/Q

The Code