Python twython.TwythonStreamer() Examples
The following are 1
code examples of twython.TwythonStreamer().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
twython
, or try the search function
.
Example #1
Source File: DiscordTwitterBot.py From discord-twitter-bot with GNU General Public License v3.0 | 5 votes |
def on_success(self, data): """Called by TwythonStreamer when a message is received on the underlying stream. Dispatches the message to all registered callbacks (in the order they were registered) if the message is not a duplicate or show_dupes is enabled.""" # Make sure this is a tweet we are interested in if not self._filter_tweet(data): return # Remember this message - if we reach our store limit, pop the oldest self._remember(data) # Notify callbacks for callback in self._callbacks: callback(data)