mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-05-22 23:16:48 +00:00
optimize bjnews
This commit is contained in:
@@ -14,12 +14,12 @@ def ctx(category=''):
|
||||
r_url = f"{domain}/{category}"
|
||||
tree = fetch(r_url)
|
||||
html = tree.css('body')
|
||||
posts = tree.css('.list-a')
|
||||
channel_title = html.css('a.cur::text').extract_first()
|
||||
posts = tree.css('.list-a').css('li')
|
||||
channel_title = html.css('a.cur::text').extract_first().strip()
|
||||
return {
|
||||
'title': channel_title,
|
||||
'title': f'{channel_title} - 新京报',
|
||||
'link': r_url,
|
||||
'description': '新京报频道新闻',
|
||||
'description': f'新京报「{channel_title}」频道新闻',
|
||||
'author': 'hillerliao',
|
||||
'items': list(map(parse, posts))
|
||||
}
|
||||
Reference in New Issue
Block a user