From 9220cfb29407ef8ef9dc13b7d2c5f0172ea987fe Mon Sep 17 00:00:00 2001 From: hillerliao Date: Fri, 24 Apr 2020 10:34:11 +0800 Subject: [PATCH] infoq topic pub time --- rsshub/spiders/infoq/topic.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rsshub/spiders/infoq/topic.py b/rsshub/spiders/infoq/topic.py index 5aa9d12..7b87a00 100644 --- a/rsshub/spiders/infoq/topic.py +++ b/rsshub/spiders/infoq/topic.py @@ -9,6 +9,7 @@ def parse(post): item['title'] = post['article_title'] item['description'] = f"{post['article_summary']}
" item['link'] = f"{domain}/article/{post['uuid']}" + item['pubDate'] = post['publish_time'] return item @@ -21,7 +22,7 @@ def ctx(category=''): posts = json.loads(posts.text)['data'] return { - 'title': f'{category} - topic - infoq', + 'title': f'{category} - Topic - InfoQ', 'link': referer, 'description': 'InfoQ - 促进软件开发领域知识与创新的传播', 'author': 'hillerliao',