remove {}

This commit is contained in:
hillerliao
2022-03-31 11:26:55 +08:00
parent 486ca65885
commit c105b4033f

View File

@@ -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