def __init__(self, db_activity): dataScheme.__init__(self) self.db_activity = db_activity self.type_activity = [ 'statuses_count', 'friends_count', 'followers_count' ]
def __init__(self, twitter_client, db, client_id, control_pause=False): "" dataScheme.__init__(self) self.client_id = client_id self.db = db self.twitter = twitter_client self.control_pause = control_pause
def __init__(self, *args, **kwargs): """ - loop_number = int of which loop it is - the type of control for the pause - the key for Twitter to connect - List of users to parse: lvl1, lvl2, lvl3 - DB to write down result: db_profile, db_link """ dataScheme.__init__(self) Process.__init__(self) self.twitter_keys = args[0] self.client_id = args[1] self.type_client = args[2] self.db_process_profile = kwargs['process_profile'] self.db_process_link = kwargs['process_link'] self.db_process_tweet = kwargs['process_tweet'] self.db_profile = kwargs['current_profile'] self.db_link = kwargs['current_link'] self.db_stored_tweet = kwargs['stored_tweet'] self.db_tweet_info = kwargs['tweet_info'] self.control_pause = True self.call_num = 1 self.twitter = Twitter(self.twitter_keys, self.control_pause, self.type_client) self.create_lock_file()
def __init__(self, *args, **kwargs): """ """ dataScheme.__init__(self) Process.__init__(self) self.db_activity = kwargs['activity'] self.db_process_profile = kwargs['process_profile'] self.db_current_profile = kwargs['current_profile'] self.db_stored_profile = kwargs['stored_profile'] self.do_activity = activityTransforming(db_activity=self.db_activity)
def __init__(self, lvl_to_do, db_profile, db_link, db_tweet, sample_db, sample_size, loop_number): """ """ dataScheme.__init__(self) Process.__init__(self) self.lvl_to_do = lvl_to_do self.db_profile = db_profile self.db_link = db_link self.db_tweet = db_tweet self.sample_db = sample_db self.sample_size = sample_size # Need to add one because the loop_number passed through is the # current loop, while the sampling is done for the next loop self.loop_number = loop_number +1
def __init__(self, lvl_to_do, db_profile, db_link, db_tweet, sample_db, sample_size, loop_number): """ """ dataScheme.__init__(self) Process.__init__(self) self.lvl_to_do = lvl_to_do self.db_profile = db_profile self.db_link = db_link self.db_tweet = db_tweet self.sample_db = sample_db self.sample_size = sample_size # Need to add one because the loop_number passed through is the # current loop, while the sampling is done for the next loop self.loop_number = loop_number + 1
def __init__(self, *args, **kwargs): """ """ dataScheme.__init__(self) Process.__init__(self) self.set_lvl1 = args[0] self.loop_interval = args[1] self.db_current_link = kwargs['current_link'] self.db_stored_link = kwargs['stored_link'] self.db_stored_profile = kwargs['stored_profile'] self.db_rand_2 = kwargs['rand_lvl2'] self.db_rand_3 = kwargs['rand_lvl3'] self.db_change_link = kwargs['change_link'] self.db_context_link = kwargs['context_link'] self.do_link = LinkInfo(self.loop_interval)
def __init__(self, *args, **kwargs): """ """ dataScheme.__init__(self) Process.__init__(self) self.loop_interval = args[0] self.time_lvl2 = int(args[1]) self.set_lvl1 = args[2] self.loop_number = args[3] self.nbr_client = args[4] self.db_process_profile = kwargs['process_profile'] self.db_process_link = kwargs['process_link'] self.db_process_tweet = kwargs['process_tweet'] self.db_current_prof = kwargs['current_profile'] self.db_current_link = kwargs['current_link'] self.db_rand_2 = kwargs['rand_lvl2'] self.db_rand_3 = kwargs['rand_lvl3'] self.do_limit = Limit(self.loop_interval, max_user=True) self.limit = self.do_limit.calculing_limit() self.create_lock_file()
def __init__(self, db_activity): dataScheme.__init__(self) self.db_activity = db_activity self.type_activity = ['statuses_count', 'friends_count', 'followers_count']