MCPcopy Index your code
hub / github.com/ryanmcgrath/twython / on_success

Method on_success

examples/stream.py:5–9  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

3
4class MyStreamer(TwythonStreamer):
5 def on_success(self, data):
6 if 'text' in data:
7 print data['text'].encode('utf-8')
8 # Want to disconnect after the first result?
9 # self.disconnect()
10
11 def on_error(self, status_code, data):
12 print status_code, data

Callers

nothing calls this directly

Calls 1

encodeMethod · 0.80

Tested by

no test coverage detected