I'm a developer in Melbourne, Australia, and co-founder of Hello Code.

Published Mon 05 December 2011

← Home

Twitter user streams with python

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.

To top