From 0001db454e04fd105283ac3beef376715b601d12 Mon Sep 17 00:00:00 2001 From: hillerliao Date: Wed, 13 Jul 2022 15:16:19 +0800 Subject: [PATCH] optimize economist world brief item url --- 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 5e646cd..5584ecc 100644 --- a/rsshub/spiders/economist/worldbrief.py +++ b/rsshub/spiders/economist/worldbrief.py @@ -9,7 +9,7 @@ def parse(post): item['title'] = post.css('div.e18qdnq10').get() item['title'] = re.sub(r'<[^>]*>', '', item['title']).strip() item['description'] = item['title'] - link = f"{domain}/the-world-in-brief" + item['link'] = f"{domain}/the-world-in-brief" + '?from=' + item['title'][:30] return item def ctx(category=''):