输出到日志-author被封禁或存在错误

This commit is contained in:
crpa33
2025-04-02 11:52:36 +08:00
committed by GitHub
parent eaf14721f8
commit 413d91a520

View File

@@ -202,8 +202,11 @@ class ZhihuExtractor:
res.user_nickname = author.get("name")
res.user_avatar = author.get("avatar_url")
res.url_token = author.get("url_token")
finally:
pass
except Exception as e :
utils.logger.warning(
f"[ZhihuExtractor._extract_content_or_comment_author] User Maybe Blocked. {e}"
)
return res
def extract_comments(self, page_content: ZhihuContent, comments: List[Dict]) -> List[ZhihuComment]: