GeometrizeTwitterBot  1.0
Python Twitter bot for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes | List of all members
geometrize_bot.GeometrizeBot Class Reference

Public Member Functions

def __init__
 

Public Attributes

 api
 
 auth
 
 stream_listener
 
 stream
 

Constructor & Destructor Documentation

def geometrize_bot.GeometrizeBot.__init__ (   self,
  tweepy_auth,
  tweepy_api,
  on_connect = None,
  on_timeout = None,
  on_error = None,
  on_status = None,
  on_setup_filter = None 
)
16 
17  on_setup_filter = None):
18 
19  print("Will create Geometrize bot")
20 
21  self.api = tweepy_api
22  self.auth = tweepy_auth
23 
24  # Set up a stream listener
26  self.stream_listener.on_connect_cb = on_connect
27  self.stream_listener.on_timeout_cb = on_timeout
28  self.stream_listener.on_error_cb = on_error
29  self.stream_listener.on_status_cb = on_status
30 
31  self.stream = tweepy.Stream(self.auth, self.stream_listener)
32 
33  # Start listening for filtered tweets.
34  if on_setup_filter is not None:
35  on_setup_filter(self.stream)
36 
print("Did create Geometrize bot")
api
Definition: geometrize_bot.py:20
Definition: geometrize_stream_listener.py:6
stream
Definition: geometrize_bot.py:30
auth
Definition: geometrize_bot.py:21
stream_listener
Definition: geometrize_bot.py:24

Member Data Documentation

geometrize_bot.GeometrizeBot.api
geometrize_bot.GeometrizeBot.auth
geometrize_bot.GeometrizeBot.stream
geometrize_bot.GeometrizeBot.stream_listener

The documentation for this class was generated from the following file: