diff --git a/README.md b/README.md index f3b0ac3..7482019 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ RSSHub 是一个轻量、易于扩展的 RSS 生成器,可以给任何奇奇 **其实用Python写爬虫要比JS更方便:p** -DEMO地址:https://rsshub-python.herokuapp.com +DEMO地址:https://pyrsshub.herokuapp.com ## RSS过滤 diff --git a/rsshub/__init__.py b/rsshub/__init__.py index 7d83e6a..f98b978 100644 --- a/rsshub/__init__.py +++ b/rsshub/__init__.py @@ -11,7 +11,8 @@ from rsshub.utils import XMLResponse def create_app(config_name=None): if config_name is None: - config_name = os.getenv('FLASK_CONFIG', 'development') + # config_name = os.getenv('FLASK_CONFIG', 'development') + config_name = os.getenv('FLASK_CONFIG', 'production') app = Flask(__name__) app.config.from_object(config[config_name]) diff --git a/rsshub/spiders/weiyangx/tag.py b/rsshub/spiders/weiyangx/tag.py index 7dc9373..fb1382c 100644 --- a/rsshub/spiders/weiyangx/tag.py +++ b/rsshub/spiders/weiyangx/tag.py @@ -25,9 +25,9 @@ def ctx(category=''): posts = json.loads(res.text)['data'] items = list(map(parse, posts)) return { - 'title': f'快讯 - 未央网', - 'description': f'快讯 - 未央网', - 'link': f'{domain}/category/express', + 'title': f'{category} - 文章 - 未央网', + 'description': f'文章 - 未央网', + 'link': f'{domain}/tag/{category}', 'author': f'hillerliao', 'items': items } diff --git a/rsshub/templates/main/feeds.html b/rsshub/templates/main/feeds.html index 61d43c9..7f57676 100644 --- a/rsshub/templates/main/feeds.html +++ b/rsshub/templates/main/feeds.html @@ -7,7 +7,7 @@

传送门

文章 by alphardex
-

举例:https://rsshub-python.herokuapp.com/chuansongme/articles

+

举例:https://pyrsshub.herokuapp.com/chuansongme/articles

路由:/chuansongme/articles/:category

参数:category [默认为“最新”]

@@ -33,7 +33,7 @@

CTOLib

话题 by alphardex
-

举例:https://rsshub-python.herokuapp.com/ctolib/topics

+

举例:https://pyrsshub.herokuapp.com/ctolib/topics

路由:/ctolib/topics/:category

参数:category [默认为“默认排序”]

@@ -59,7 +59,7 @@

InfoQ

推荐内容 by alphardex
-

举例:https://rsshub-python.herokuapp.com/infoq/recommend

+

举例:https://pyrsshub.herokuapp.com/infoq/recommend

路由:/infoq/recommend

@@ -68,8 +68,8 @@

巨潮资讯

公司公告 by hillerliao
-

举例:https://rsshub-python.herokuapp.com/cninfo/announcement/all/gqjl

-

举例:https://rsshub-python.herokuapp.com/cninfo/announcement/all/gqbd_预披露,股权变动类公告中标题含有「预披露」的公告

+

举例:https://pyrsshub.herokuapp.com/cninfo/announcement/all/gqjl

+

举例:https://pyrsshub.herokuapp.com/cninfo/announcement/all/gqbd_预披露,股权变动类公告中标题含有「预披露」的公告

路由:/cninfo/announcement/:stock_id/:category

@@ -79,7 +79,7 @@

东兴资管

产品公告 by hillerliao
-

举例:https://rsshub-python.herokuapp.com/dxzg/notice

+

举例:https://pyrsshub.herokuapp.com/dxzg/notice

路由:/dxzg/notice

@@ -91,7 +91,7 @@

Earnings Date

Earnings Date by hillerliao
-

举例:https://rsshub-python.herokuapp.com/earningsdate/businesswire

+

举例:https://pyrsshub.herokuapp.com/earningsdate/businesswire

路由:/earningsdate/:category

参数:category [必填,可以为“businesswire、globenewswire、prnewswire”]

@@ -104,7 +104,7 @@

界面快讯

界面快讯 by hillerliao
-

举例:https://rsshub-python.herokuapp.com/jiemian/newsflash/166

+

举例:https://pyrsshub.herokuapp.com/jiemian/newsflash/166

路由:/jiemian/newsflash/:category

参数:category [必填,见界面快讯栏目https://www.jiemian.com/lists/4.html]

@@ -117,7 +117,7 @@

证监会审核进度

证监会审核进度 by hillerliao
-

举例:https://rsshub-python.herokuapp.com/csrc/audit/a1d50077cd7f4b15bd1c8d6163f32850

+

举例:https://pyrsshub.herokuapp.com/csrc/audit/a1d50077cd7f4b15bd1c8d6163f32850

路由:/csrc/audit/:category

参数:category [必填,见证监会栏目 https://neris.csrc.gov.cn/alappl/home/gongshi]

@@ -130,7 +130,7 @@

财新网滚动新闻

财新网滚动新闻 by hillerliao
-

举例:https://rsshub-python.herokuapp.com/caixin/scroll/125

+

举例:https://pyrsshub.herokuapp.com/caixin/scroll/125

路由:/caixin/scroll/:category

参数:category [必填,见财新网滚动频道 http://www.caixin.com/search/scroll/0.jsp]

@@ -143,7 +143,7 @@

东方财富网行业/个股研报

东方财富网行业/个股研报 by hillerliao
-

举例:https://rsshub-python.herokuapp.com/eastmoney/report/stock/473

+

举例:https://pyrsshub.herokuapp.com/eastmoney/report/stock/473

路由:/eastmoney/report/:type/:category

参数:type, category [必填,见财新网滚动频道 http://www.caixin.com/search/scroll/0.jsp]

@@ -156,7 +156,7 @@

选股宝板块/主题动态

选股宝板块/主题动态 by hillerliao
-

举例:https://rsshub-python.herokuapp.com/xuangubao/theme/17006066

+

举例:https://pyrsshub.herokuapp.com/xuangubao/theme/17006066

路由:/xuangubao/:type/:category

参数:type = theme|subject, category [必填,板块/主题ID]

@@ -169,7 +169,7 @@

财联社主题动态

财联社主题动态 by hillerliao
-

举例:https://rsshub-python.herokuapp.com/cls/subject/1345

+

举例:https://pyrsshub.herokuapp.com/cls/subject/1345

路由:/cls/subject/:category

参数:category [必填,见财联社APP主题栏目]

@@ -182,7 +182,7 @@

链得得栏目动态

链得得栏目动态 by hillerliao
-

举例:https://rsshub-python.herokuapp.com/chaindd/column/3158465

+

举例:https://pyrsshub.herokuapp.com/chaindd/column/3158465

路由:/chaindd/column/:category

参数:category [必填,见链得得栏目url中的数字编号]

@@ -195,7 +195,7 @@

Techcrunch tag文章列表

Techcrunch tag文章列表 by hillerliao
-

举例:https://rsshub-python.herokuapp.com/techcrunch/tag/216504

+

举例:https://pyrsshub.herokuapp.com/techcrunch/tag/216504

路由:/techcrunch/tag/:category

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

@@ -208,7 +208,7 @@

未央网-国际快讯

未央网-国际快讯 by hillerliao
-

举例:https://rsshub-python.herokuapp.com/weiyangx/express/

+

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

路由:/weiyangx/express/

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

未央网 tag文章列表

未央网 tag文章列表 by hillerliao
-

举例:https://rsshub-python.herokuapp.com/weiyangx/tag/270

+

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

路由:/weiyangx/tag/:category

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

diff --git a/rsshub/templates/main/index.html b/rsshub/templates/main/index.html index fb8d083..5b8a28f 100644 --- a/rsshub/templates/main/index.html +++ b/rsshub/templates/main/index.html @@ -7,7 +7,7 @@

Welcome to RSSHub!

If you see this page, the RSSHub is successfully installed and working.

- View Source + View Source

{% endblock %} \ No newline at end of file