加入图片下载逻辑。

This commit is contained in:
liuwei
2025-04-01 16:43:54 +08:00
parent 57947bde07
commit c95b5b8a9d
4 changed files with 229 additions and 45 deletions

View File

@@ -16,7 +16,6 @@ def format_quote_message(xml_content):
try:
xml_content = xml_content.replace('&lt;', '<').replace('&gt;', '>')
print(xml_content)
# 使用正则表达式直接提取关键信息避免XML解析问题
title_match = re.search(r'<title>(.*?)</title>', xml_content)
main_content = title_match.group(1) if title_match else "[无标题]"