public
Description: Twitter Stream API for Twisted
Homepage:
Clone URL: git://github.com/fiorix/twisted-twitter-stream.git
name age message
file .gitignore Wed Jul 29 10:47:33 -0700 2009 first commit [Alexandre Fiori]
file README.rst Fri Oct 09 09:26:44 -0700 2009 added note about proxy [fiorix]
file TwistedTwitterStream.py Wed Jul 29 10:47:33 -0700 2009 first commit [Alexandre Fiori]
directory examples/ Wed Jul 29 10:47:33 -0700 2009 first commit [Alexandre Fiori]
file setup.py Wed Jul 29 10:47:33 -0700 2009 first commit [Alexandre Fiori]
README.rst

TwistedTwitterStream

Info:See Twitter Streaming API for more information. See github for the latest source.
Author: Alexandre Fiori <fiorix@gmail.com>

About

The TwistedTwitterStream package provides an event-driven API for receiving Twitter status updates through the asynchronous Twitter Streaming API.

The following methods are supported:

Notes

  • A JSON parser is required. Like json or simplejson.
  • All methods will automatically reconnect to the server with an exponential back-off. See t.i.p.ReconnectingClientFactory for details.
  • All methods must be initialized with a consumer function, which will be fired on every status update.
  • In order to stop the stream and disconnect from the server, the consumer function must return False.
  • The consumer function will always receive statuses in the JSON format.
  • No proxy support.

Examples

Examples are available in the examples/ directory.