1.4.4 1.4.4

This commit is contained in:
t@123654
2025-07-23 16:11:03 +08:00
parent a00b87f32e
commit f783e4e78e
3 changed files with 3 additions and 3 deletions
View File
+2 -2
View File
@@ -94,7 +94,7 @@ class WXArticleFetcher:
body=driver.find_element(By.TAG_NAME,"body").text
info["content"]=body
if "该内容已被发布者删除" in body or "The content has been deleted by the author." in body:
info["content"]="该内容已被发布者删除"
info["content"]="DELETED"
raise Exception("该内容已被发布者删除")
# 等待关键元素加载
wait.until(
@@ -138,7 +138,7 @@ class WXArticleFetcher:
# raise Exception(f"文章内容获取失败: {str(e)}")
print(f"文章内容获取失败: {str(e)}")
print_warning(f"\n\n{body}")
raise
# raise
try:
# 等待关键元素加载
+1 -1
View File
@@ -37,7 +37,7 @@ def fetch_articles_without_content():
if content:
# 更新内容
article.content = content
if "该内容已被发布者删除" in content:
if content=="DELETED":
print_error(f"获取文章 {article.title} 内容已被发布者删除")
article.status = DATA_STATUS.DELETED
session.commit()