Skip to content

Commit 7d8b69a

Browse files
committed
refactor(economist): 调整世界简报的链接生成规则
- 将标题前 30 个字符用于生成链接改为前 50 个字符 - 这个改动旨在提高链接的准确性和可读性
1 parent 01287ec commit 7d8b69a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rsshub/spiders/economist/worldbrief.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def parse_news(gobbet):
2424
item = {
2525
'title': title,
2626
'description': gobbet, # 简单设置正文为描述
27-
'link': f"{domain}/the-world-in-brief?from={title[:30]}" # 生成链接
27+
'link': f"{domain}/the-world-in-brief?from={title[:50]}" # 生成链接
2828
}
2929
return item
3030

0 commit comments

Comments
 (0)