From c105b4033fec261ac3c8a25cc1a277b9b9a87951 Mon Sep 17 00:00:00 2001 From: hillerliao Date: Thu, 31 Mar 2022 11:26:55 +0800 Subject: [PATCH] remove {} --- rsshub/spiders/zaobao/realtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsshub/spiders/zaobao/realtime.py b/rsshub/spiders/zaobao/realtime.py index 4c32f78..ac380b6 100644 --- a/rsshub/spiders/zaobao/realtime.py +++ b/rsshub/spiders/zaobao/realtime.py @@ -7,7 +7,7 @@ domain = 'https://www.zaobao.com' def parse(post): item = {} item['description'] = item['title'] = post.css('div.f18.m-eps::text').extract_first() - item['link'] = domain + f"{post.css('a::attr(href)').extract_first()}" + item['link'] = domain + post.css('a::attr(href)').extract_first() return item