Added disconnect to TwythonStreamer, more tests, update example
* Stream and Twython core tests * Import TwythonStreamError from twython See more in 2.10.1 section of HISTORY.rst
This commit is contained in:
parent
815393cc33
commit
c8b1202880
9 changed files with 122 additions and 55 deletions
|
|
@ -4,6 +4,8 @@ from twython import TwythonStreamer
|
|||
class MyStreamer(TwythonStreamer):
|
||||
def on_success(self, data):
|
||||
print data
|
||||
# Want to disconnect after the first result?
|
||||
# self.disconnect()
|
||||
|
||||
def on_error(self, status_code, data):
|
||||
print status_code, data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue