This commit is contained in:
MasonLiu committed 2025-01-10 10:02:43 +08:00
1 parent 865c477066
commit ad0403554e
24 files changed
+756 -1878

No files matched your search

+2 -1
View File
@@ -59,7 +59,8 @@ def github_main_keyword(key, black_words):
if result == None:
time.sleep(5)
continue
for i in range(0, 20):
n = len(result['items'])
for i in range(0, n):
description = result['items'][i]['description']
if description is None:
+1 -1
View File
@@ -99,7 +99,7 @@ def sougou_wx_main(keywords):
results = parse_html(html_content)
# 移除非法代理对
cleaned_results = [{k: remove_surrogates(v) for k, v in item.items()} for item in results]
logger.warning(f"关键词【{keyword}】的微信公众号-Sogou搜索内容保存成功。")
logger.info(f"关键词【{keyword}】的微信公众号-Sogou搜索内容保存成功。")
all_results[keyword] = cleaned_results # 将结果存储在字典中,以关键词为键
time.sleep(5)