Created
February 24, 2013 13:34
-
-
Save rande/5023863 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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