Example #1
0
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)
Example #2
0
 def setUp(self):
     self.toast = Toast(BotDB(db_name="sqlite3"))
Example #3
0
 def setUp(self):
     self.baemin = Baemin(BotDB(db_name="sqlite3"))
Example #4
0
 def setUp(self):
     self.outsider = Outsider(BotDB(db_name="sqlite3"))
Example #5
0
 def setUp(self):
     self.naver = Naver(BotDB(db_name="sqlite3"))
Example #6
0
 def setUp(self):
     self.dramaandcompany = Dramancompany(BotDB(db_name="sqlite3"))
Example #7
0
 def setUp(self):
     self.vcnc = Vcnc(BotDB(db_name="sqlite3"))