Writings Photos Code Contact Resume
Twitter OAuth Proxy

You are here

Submitted by msameer on Tue, 14/09/2010 - 8:55pm

I'm using Twitter plugin for Contacts and Conversations to twitter on my N900.

Twitter recently moved to OAuth. Problem is the Maemo package is outdated and seems to be unmaintained.

I did some research and came across a blog entry about exploring OAuth-protected APIs and some code. Nice idea but not usable for me.

I ended up sitting down and writing a small python script that will re-route your HTTP requests to api.twitter.com after adding all the OAuth bills and whistles, read the reply from twitter and send it back. Neat ? :-)

There's also supertweet.net which I've discovered after I finished writing my script but seems they don't support all of the twitter API call while my script does that.

The script is simple without much error checking but it's been working for me for a few days already.

Last thing, I'm not interested in running a service like supertweet. I'll not be implementing the full OAuth protocol. Need to use it ? Register your own application.

Get the code while hot!

git clone git@gitorious.org:twitter-proxy/twitter-proxy.git

Next step: Thinking of maintaining the twitter plugin for Maemo. I already compiled the latest code and it sort of works fine :-)

Comments

Submitted by hschmitt (not verified) on Tue, 14/09/2010 - 10:17pm

barriosquare package has OAuth implemented for foursquare.com login.

Submitted by muid (not verified) on Sat, 09/10/2010 - 5:51pm

Thanks works great - finally Thunderbird can access the twitter RSS feed again...

For noobs like me here's a step by step guide for Ubuntu 10.10

sudo apt-get install git
sudo apt-get python-setuptools
git clone git://gitorious.org/twitter-proxy/twitter-proxy.git
cd twitter-proxy/
more README
vi twitter.ini
wget -c http://httplib2.googlecode.com/files/httplib2-0.6.0.tar.gz
tar -zxvf httplib2-0.6.0.tar.gz
ln -s httplib2-0.6.0 httplib2
git clone http://github.com/simplegeo/python-oauth2.git
cd python-oauth2/
python setup.py build
sudo python setup.py install
cd ..
python ./twitter-proxy.py

Add new comment

Subscribe to /  digg  bookmark