|
@@ -51,17 +51,17 @@ class Searchkey:
|
|
|
cls.start_wechat(log_type, crawler)
|
|
|
time.sleep(10)
|
|
|
cls.get_search_key(log_type, crawler)
|
|
|
- else:
|
|
|
- for file in all_file:
|
|
|
- if file.endswith("chlsj") is False:
|
|
|
- os.remove(f"./{crawler}/{crawler}_chlsfiles/{file}")
|
|
|
- else:
|
|
|
- chlsfile_list.append(file)
|
|
|
- if len(chlsfile_list) == 0:
|
|
|
- Common.logger(log_type, crawler).info('未找到chlsfile文件,重新获取')
|
|
|
- cls.start_wechat(log_type, crawler)
|
|
|
- time.sleep(10)
|
|
|
- cls.get_search_key(log_type, crawler)
|
|
|
+ # else:
|
|
|
+ # for file in all_file:
|
|
|
+ # if file.endswith("chlsj") is False:
|
|
|
+ # os.remove(f"./{crawler}/{crawler}_chlsfiles/{file}")
|
|
|
+ # else:
|
|
|
+ # chlsfile_list.append(file)
|
|
|
+ # if len(chlsfile_list) == 0:
|
|
|
+ # Common.logger(log_type, crawler).info('未找到chlsfile文件,重新获取')
|
|
|
+ # cls.start_wechat(log_type, crawler)
|
|
|
+ # time.sleep(10)
|
|
|
+ # cls.get_search_key(log_type, crawler)
|
|
|
else:
|
|
|
# 获取最新的 chlsfile
|
|
|
chlsfile = chlsfile_list[-1]
|