From 58e93a9e219bad28ff46199140425ab5954d7afe Mon Sep 17 00:00:00 2001 From: hillerliao Date: Mon, 13 Apr 2020 15:30:53 +0800 Subject: [PATCH] add weiyangx home --- rsshub/spiders/weiyangx/home.py | 6 +++--- rsshub/templates/main/feeds.html | 14 +++++++++++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/rsshub/spiders/weiyangx/home.py b/rsshub/spiders/weiyangx/home.py index fdba8a1..398359f 100644 --- a/rsshub/spiders/weiyangx/home.py +++ b/rsshub/spiders/weiyangx/home.py @@ -23,9 +23,9 @@ def ctx(): posts = json.loads(posts) items = list(map(parse, posts)) return { - 'title': f'快讯 - 未央网', - 'description': f'快讯 - 未央网', - 'link': f'{domain}/category/express', + 'title': f'首页 - 未央网', + 'description': f'首页推荐栏目 - 未央网', + 'link': f'{domain}', 'author': f'hillerliao', 'items': items } diff --git a/rsshub/templates/main/feeds.html b/rsshub/templates/main/feeds.html index 7f57676..ce5eabc 100644 --- a/rsshub/templates/main/feeds.html +++ b/rsshub/templates/main/feeds.html @@ -203,6 +203,18 @@
+ +
+
+

未央网-首页

+
未央网-首页 by hillerliao
+

举例:https://pyrsshub.herokuapp.com/weiyangx/home/

+

路由:/weiyangx/home/

+
+
+
+ +
@@ -220,7 +232,7 @@

未央网 tag文章列表

未央网 tag文章列表 by hillerliao
-

举例:https://pyrsshub.herokuapp.com/weiyangx/tag/0

+

举例:https://pyrsshub.herokuapp.com/weiyangx/tag/金融科技

路由:/weiyangx/tag/:category

参数:category [必填,见 weiyangx 官网]