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 @@
举例:https://rsshub-python.herokuapp.com/chuansongme/articles
+举例:https://pyrsshub.herokuapp.com/chuansongme/articles
路由:/chuansongme/articles/:category
参数:category [默认为“最新”]