mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-17 15:09:31 +00:00
fix world brief bug
This commit is contained in:
@@ -6,9 +6,9 @@ domain = 'https://www.economist.com'
|
|||||||
|
|
||||||
def parse(post):
|
def parse(post):
|
||||||
item = {}
|
item = {}
|
||||||
item['title'] = post.css('div.e18qdnq10').get()
|
item['title'] = post.css('div').css('p').get()
|
||||||
item['title'] = re.sub(r'<[^>]*>', '', item['title']).strip()
|
|
||||||
item['description'] = item['title']
|
item['description'] = item['title']
|
||||||
|
item['title'] = re.sub(r'<[^>]*>', '', item['title']).strip()
|
||||||
item['link'] = f"{domain}/the-world-in-brief" + '?from=' + item['title'][:30]
|
item['link'] = f"{domain}/the-world-in-brief" + '?from=' + item['title'][:30]
|
||||||
return item
|
return item
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user