From 324cc61d70e2d1b0ab279683fe690c950cc593ea Mon Sep 17 00:00:00 2001 From: hillerliao Date: Fri, 26 Nov 2021 21:25:27 +0800 Subject: [PATCH] fix chouti user --- rsshub/spiders/chouti/user.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rsshub/spiders/chouti/user.py b/rsshub/spiders/chouti/user.py index 5806941..264eaaa 100644 --- a/rsshub/spiders/chouti/user.py +++ b/rsshub/spiders/chouti/user.py @@ -7,7 +7,7 @@ domain = 'https://dig.chouti.com' def parse(post): item = {} item['title'] = post['title'] - item['description'] = f"[{post['sectionName']}] {item['title']} " + item['description'] = f"{item['title']} " item['link'] = 'https://dig.chouti.com/link/' + str(post['id']) item['pubDate'] = str(post['created_time'])[0:10] item['author'] = post['submitted_user']['nick'] @@ -16,7 +16,7 @@ def parse(post): def ctx(category=''): DEFAULT_HEADERS.update({'Referer': domain}) - r_url = f'{domain}/publish/links/ajax?userId=ctu_{category}' + r_url = f'{domain}/publish/links/ajax?userId={category}' posts = requests.get(r_url, headers=DEFAULT_HEADERS).json()['data'] user_name = posts[0]['submitted_user']['nick'] return {