|
@@ -42,7 +42,7 @@ class Main:
|
|
|
|
|
|
@classmethod
|
|
|
def thread_main(cls, log_type, crawler, env):
|
|
|
- Common.logger(log_type, crawler).info(f"开始抓取今日热搜榜\n")
|
|
|
+ Common.logger(log_type, crawler).info("开始抓取今日热搜榜\n")
|
|
|
thread_baidu = Thread(target=cls.thread_baidu, args=(log_type, crawler, env))
|
|
|
thread_kuaishou = Thread(target=cls.thread_kuaishou, args=(log_type, crawler, env))
|
|
|
thread_douyin = Thread(target=cls.thread_douyin, args=(log_type, crawler, env))
|
|
@@ -60,7 +60,7 @@ class Main:
|
|
|
thread_douyin.join()
|
|
|
thread_weixin.join()
|
|
|
thread_weibo.join()
|
|
|
- Common.logger(log_type, crawler).info(f"今日热搜榜全部抓取完毕\n")
|
|
|
+ Common.logger(log_type, crawler).info("今日热搜榜全部抓取完毕\n")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
Main.thread_main("hot-search", "weixinzhishu", "prod")
|