Writings Photos Code Contact Resume Me
Twitter OAuth Proxy
Submitted by msameer on Tue, 14/09/2010 - 10: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 :-)

Syndicate content  digg  bookmark

Submitted by hschmitt (not verified) on Wed, 15/09/2010 - 12:17am.

barriosquare package has OAuth implemented for foursquare.com login.

Submitted by muid (not verified) on Sat, 09/10/2010 - 7: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
Post new comment
(If you're a human, don't change the following field)
Your first name.
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <b> <dd> <dl> <dt> <i> <s> <li> <ol> <u> <ul> <br> <br /> <blockquote>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Lines and paragraphs break automatically.

More information about formatting options