refactor(economist): 调整世界简报链接生成规则以支持更长标题

This commit is contained in:
Hiller Liao
2025-02-17 22:17:15 +08:00
parent 7d8b69a916
commit dd92fd2bd7

View File

@@ -24,7 +24,7 @@ def parse_news(gobbet):
item = {
'title': title,
'description': gobbet, # 简单设置正文为描述
'link': f"{domain}/the-world-in-brief?from={title[:50]}" # 生成链接
'link': f"{domain}/the-world-in-brief?from={title[:100]}" # 生成链接
}
return item