Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
521xueweihan committed Mar 17, 2021
1 parent aee9735 commit 9f87e30
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,12 @@
sentry_config = Config.sentry_config()
sentry_sdk.init(**sentry_config)

SPIDER_MAP = {
"wechat": WeChat(), "cnblogs": Cnblogs(), "toutiao": Toutiao(),
"csdn": Csdn(), "zhihu": Zhihu(), "juejin": Juejin(), "jike": Jike()
}
SPIDER_LIST = [WeChat, Cnblogs, Toutiao, Csdn, Zhihu, Juejin, Jike]


def job():
for spider in SPIDER_MAP.values():
spider.start()
for spider in SPIDER_LIST:
spider().start()


schedule.every().day.at("06:30").do(job)
Expand Down

0 comments on commit 9f87e30

Please sign in to comment.