mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-14 15:09:23 +00:00
get title from h3 tag instead of a tag
This commit is contained in:
@@ -4,7 +4,7 @@ domain = 'https://www.prnewswire.com'
|
||||
|
||||
def parse(post):
|
||||
item = {}
|
||||
item['title'] = post.css('a::text').getall()[1]
|
||||
item['title'] = post.css('h3::text').getall()[1]
|
||||
item['description'] = post.css('p::text').extract_first()
|
||||
item['link'] = f"{domain}{post.css('a::attr(href)').extract_first()}"
|
||||
item['pubDate'] = post.css('small::text').extract_first()
|
||||
|
||||
Reference in New Issue
Block a user