def check(): bot_db = BotDB(db_name=DBConfig.db_name) posts = [] sites = [ Baemin(db=bot_db), Naver(db=bot_db), Kakao(db=bot_db), Kakao(db=bot_db), Outsider(db=bot_db), Vcnc(db=bot_db), Dramancompany(db=bot_db) ] for crawler in sites: post = crawler.get_new_post_and_update() if (post != None): posts.append(post) send_posts(posts)
def setUp(self): self.toast = Toast(BotDB(db_name="sqlite3"))
def setUp(self): self.baemin = Baemin(BotDB(db_name="sqlite3"))
def setUp(self): self.outsider = Outsider(BotDB(db_name="sqlite3"))
def setUp(self): self.naver = Naver(BotDB(db_name="sqlite3"))
def setUp(self): self.dramaandcompany = Dramancompany(BotDB(db_name="sqlite3"))
def setUp(self): self.vcnc = Vcnc(BotDB(db_name="sqlite3"))