Twitter user streams with python

Monday 5 Dec 2011

I have been trying to find a basic proof-of-concept for twitter user streams. I couldn't find a complete example, so I rolled my own.

I wanted to avoid the external pyCurl dependency (which means curl needs to be installed separarely on Windows) so I switched the pyCurl callback method you might have come across with some rather naive urllib2 buffering.

It works, though, and that's the important part.

Note: This has been tested on Python 2.6.5 and up. Problems have been reported with older versions.

About the Blog

I'm a web application developer in Melbourne, Australia, occasionally writing about related tech things.

If you need web design, development, or usability consulting, contact me via my business, Recursive.