Here’s one of those projects that you dream up just to avoid doing more important/useful work: FFmpeg SVN to Twitter gateway. I, too, am now contributing to the notorious fail whale.
All the kids are talking about this Twitter thing these days. I have read up on some kind of open API they offer. I’m not really that keen on these modern web-based APIs. I had a feeling that someone must have a Python API for it and sure enough: python-twitter. So that takes care of that half of the gateway.
The other half is interfacing to FFmpeg SVN. I already have this part reasonably figured out thanks to FATE— my current method is to simply execute ‘svn’ via shell and parse the stdout. It seems that there are a few cleaner Python-oriented solutions for this. But all I really need is to parse the current revision number from ‘svn info’ and then parse the output of ‘svn log -r <rev>’.
Perhaps the craziest part of my solution is that I’m using an sqlite3 database to store a single piece of data– the revision. Hey, I just find it to be the simplest solution, oddly enough.
I imagine it would be possible to engineer the Twitter update as a function triggered during a commit. However, I tend to think it’s not a good idea to have a commit trigger that is dependent on an RPC call to a web service that has a tenuous uptime reputation.
Now to sit back and see if anyone actually follows the account (besides spammers).
You could have the commit email trigger it.
And you could much more easily use bti (net-misc/bti in Gentoo) to do the job, as it’s a standard command you can run from shell.
I use that method for having a quick glance at how the Tinderbox proceeds ( http://identi.ca/flameeyestinderbox ).
It’s no longer updating svn commits.
It looks like you didn’t update to the new authentication method:
http://dev.twitter.com/announcements
@Ramiro: Oops. Actually, it has more to do with this machine no longer being in (my) service.
I didn’t realize anyone was actually following the account. :-)
not “following”, really… I was trying to make an interrupt based system to run the fate tests and looked into using the tweeter api for that, but my laziness made me keep the poll-based system…