News for hackers. Stuff that matters.
Re:TwitTornado: Real-time Twitter using Tornado by thingsilearned on Wednesday September 16, 2009 @06:59PM (#827003)
I've open sourced the code here

http://github.com/godavemon/TwitTornado

A bit more about TwitTornado

http://twittornado.com/about

It was a fun and short project. I highly recommend Tornado to anyone needing a push framework.

Re:TwitTornado: Real-time Twitter using Tornado by paul on Thursday September 17, 2009 @02:42AM (#827561)
You should be able to get near-instant updates by using Twitter's streaming API: http://apiwiki.twitter.com/Streaming-API-Documentation#statu...

I just updated Tornado's httpclient to include a streaming_callback parameter which allows you to process data as it arrives (the param was somehow lost when httpclient was extracted from the FriendFeed code).

To use it, just do something like:

    http_client.fetch("http://stream.twitter.com/1/statuses/filter.json?follow=IDS...,
       cb, streaming_callback=self._handle_data, auth_username=...)

    def _handle_data(self, data):
        lines = (self.prev_linepart + data).split("\n")
        self.prev_linepart = lines[-1]
        lines = lines[:-1]
        if not lines:
            return

        for t in lines:
            try:
                tweet = tornado.escape.json_decode(t)
Re:TwitTornado: Real-time Twitter using Tornado by thingsilearned on Thursday September 17, 2009 @04:21PM (#828856)
Awesome! I'll try to integrate this soon.
Re:TwitTornado: Real-time Twitter using Tornado by adriand on Wednesday September 16, 2009 @09:40PM (#827265)
This is great! For me, the best thing about it is that it actually allows me to tweet, a feature that has not worked for me on the Twitter website for several weeks. It is nice to be able to tweet from a browser again.
Re:TwitTornado: Real-time Twitter using Tornado by vimalg2 on Thursday September 17, 2009 @08:34AM (#827857)
TIP: The official tornadoweb.com link is incorrect. I believe it should be http://www.tornadoweb.org/
Re:TwitTornado: Real-time Twitter using Tornado by bdr on Wednesday September 16, 2009 @07:59PM (#827102)
I click "Sign in with Twitter", give it my u/p and click "Allow", then it takes me back to the exact same starting page ("Sign in with Twitter").
Re:TwitTornado: Real-time Twitter using Tornado by callmeed on Wednesday September 16, 2009 @09:34PM (#827253)
Yeah, same here
Re:TwitTornado: Real-time Twitter using Tornado by flashingpumpkin on Thursday September 17, 2009 @05:22AM (#827716)
Same same
Re:TwitTornado: Real-time Twitter using Tornado by mcxx on Wednesday September 16, 2009 @07:02PM (#827009)
Is it only me or it doesn't work?
Re:TwitTornado: Real-time Twitter using Tornado by thingsilearned on Wednesday September 16, 2009 @07:08PM (#827022)
Twitter seems to be pretty dodgy at the moment with the increased # of requests going to it. Its giving 503's. Refreshing a few times (brute force!) eventually gets you through.
Re:TwitTornado: Real-time Twitter using Tornado by garbowza on Wednesday September 16, 2009 @07:08PM (#827023)
It's working for me. I think Twitter was down for a few mins.
Re:TwitTornado: Real-time Twitter using Tornado by siong1987 on Wednesday September 16, 2009 @08:29PM (#827153)
"There is no need to refresh. Your stream is automatically updated with the other non-TwitTornado tweets in 30 second intervals."

30 seconds interval? So, it is "near-realtime". Anyway, you have a really nice product up there.

Re:TwitTornado: Real-time Twitter using Tornado by garbowza on Wednesday September 16, 2009 @09:26PM (#827240)
Tweets from other TwitTornado users are in real time (via Tornado). Tweets from non-TwitTornado users are polled on the interval.
Re:TwitTornado: Real-time Twitter using Tornado by ivankirigin on Wednesday September 16, 2009 @07:04PM (#827013)
I'd love to see this built own. A live-updating, clean, and light weight web based twitter client doesn't exist. I'd subscribe for a few bucks a month to use it.
Re:TwitTornado: Real-time Twitter using Tornado by xoai on Wednesday September 16, 2009 @10:01PM (#827285)
This's exactly what I want. I also built a web based one with PHP but the performance is not good enough for real time.
Re:TwitTornado: Real-time Twitter using Tornado by genieyclo on Tuesday October 13, 2009 @12:04AM (#878302)
Hmm, I'm getting a 502 Bad Gateway error from nginx
Re:TwitTornado: Real-time Twitter using Tornado by Raphael on Wednesday September 16, 2009 @07:32PM (#827060)
The throbber going constantly is annoying.
Re:TwitTornado: Real-time Twitter using Tornado by thingsilearned on Wednesday September 16, 2009 @11:42PM (#827391)
Agreed, though that's only for certain browsers. Hopefully either those browsers fix it or some hack around it is established. What browser are you using?

Until getting any push/real-time features is going to come with that.

Re:TwitTornado: Real-time Twitter using Tornado by jacobolus on Thursday September 17, 2009 @01:31AM (#827494)
Many hacks around it are established. Take a look at the Orbited project, http://orbited.org/, or come talk to us in IRC (in #orbited on freenode) if you want help figuring out how to avoid the UI side-effects.