Ejemplo n.º 1
0
 def __init__(self, type):
     super().__init__(type)
     # Items specific to the mention stream
     self.disallowed_mods = get_data("disallowed_mods")
     self.mentions_success = get_data("mentions_success")
     self.mentions_failed = get_data("mentions_failed")
     self.problematic_domains = get_data("problematic_domains")
Ejemplo n.º 2
0
 def __init__(self, type):
     # Basic items
     self.type = type
     self.allowed_subreddits = get_data("allowed_subreddits")
     self.disallowed_subreddits = get_data("disallowed_subreddits")
     self.disallowed_users = get_data("disallowed_users")
     self.np_subreddits = get_data("np_subreddits")
     self.praw_session = login.get_praw_session()
Ejemplo n.º 3
0
def get_logging_path(filename):
    try:
        logging_path = get_data(filename, is_log=True, return_path_only=True)
        return logging_path
    except (ValueError, Exception):
        logging.error(traceback.format_exc())
        logging.warning("Couldn't get logging path")
        return None
Ejemplo n.º 4
0
 def __init__(self, type):
     # Items specific to the tweet stream
     self.type = type
     self.tweets_success = get_data("tweets_success")
     self.tweets_failed = get_data("tweets_failed")
     self.disallowed_twitterers = get_data("disallowed_twitterers")
Ejemplo n.º 5
0
 def __init__(self, type):
     super().__init__(type)
     # Items specific to the submission stream
     self.submissions_success = get_data("submissions_success")
     self.submissions_failed = get_data("submissions_failed")
Ejemplo n.º 6
0
 def __init__(self, type):
     super().__init__(type)
     # Items specific to the comment stream
     self.comments_success = get_data("comments_success")
     self.comments_failed = get_data("comments_failed")
Ejemplo n.º 7
0
 def __init__(self, type):
     # Items specific to the tweet stream
     self.type = type
     self.tweets_ok = get_data("tweets_ok")
     self.tweets_err = get_data("tweets_err")
     self.disallowed_twitterers = get_data("disallowed_twitterers")
Ejemplo n.º 8
0
 def __init__(self, type):
     super().__init__(type)
     # Items specific to the submission stream
     self.submissions_ok = get_data("submissions_ok")
     self.submissions_err = get_data("submissions_err")
Ejemplo n.º 9
0
 def __init__(self, type):
     super().__init__(type)
     # Items specific to the comment stream
     self.comments_ok = get_data("comments_ok")
     self.comments_err = get_data("comments_err")