Skip to content

Instantly share code, notes, and snippets.

@rande
Created February 24, 2013 13:34
Show Gist options
  • Save rande/5023863 to your computer and use it in GitHub Desktop.
Save rande/5023863 to your computer and use it in GitHub Desktop.
class consumer(twistedhttpstream.MessageReceiver):
def connectionMade(self):
print "connected..."
def connectionFailed(self, why):
print "cannot connect:", why
reactor.stop()
def messageReceived(self, tweet):
print "new message:", repr(tweet)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment