From 7d8b69a916353688e0b099f083d2c18cfc03f425 Mon Sep 17 00:00:00 2001 From: Hiller Liao Date: Mon, 17 Feb 2025 22:14:16 +0800 Subject: [PATCH] =?UTF-8?q?refactor(economist):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E4=B8=96=E7=95=8C=E7=AE=80=E6=8A=A5=E7=9A=84=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E7=94=9F=E6=88=90=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将标题前 30 个字符用于生成链接改为前 50 个字符 - 这个改动旨在提高链接的准确性和可读性 --- rsshub/spiders/economist/worldbrief.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsshub/spiders/economist/worldbrief.py b/rsshub/spiders/economist/worldbrief.py index 616590f..35beef0 100644 --- a/rsshub/spiders/economist/worldbrief.py +++ b/rsshub/spiders/economist/worldbrief.py @@ -24,7 +24,7 @@ def parse_news(gobbet): item = { 'title': title, 'description': gobbet, # 简单设置正文为描述 - 'link': f"{domain}/the-world-in-brief?from={title[:30]}" # 生成链接 + 'link': f"{domain}/the-world-in-brief?from={title[:50]}" # 生成链接 } return item