mirror of
https://github.com/d0zingcat/RSSHub-python.git
synced 2026-06-09 23:16:57 +00:00
dc3319426dcba38b73b33fa24d0405f3cc54f486
RSSHub
🍰 万物皆可 RSS
RSSHub 是一个轻量、易于扩展的 RSS 生成器,可以给任何奇奇怪怪的内容生成 RSS 订阅源
本项目是原RSSHub的Python实现。
其实用Python写爬虫要比JS更方便:p
DEMO地址:https://pyrsshub.vercel.app
交流
Discord Server: https://discord.gg/4BZBZuyx7p
RSS过滤
你可以通过以下查询字符串来过滤RSS的内容:
- include_title: 搜索标题,支持多关键词
- include_description: 搜索描述
- exclude_title: 排除标题
- exclude_description: 排除描述
- limit: 限制条数
贡献 RSS 方法
- fork这份仓库
- 在spiders文件夹下创建新的爬虫目录和脚本,编写爬虫,参考我的爬虫教程
- 在blueprints的main.py中添加对应的路由(按照之前路由的格式)
- 在templates中的main目录下的feeds.html上写上说明文档,同样可参照格式写
- 提pr
部署
本地测试
首先确保安装了pipenv
git clone https://github.com/alphardex/RSSHub-python
cd RSSHub-python
pipenv install --dev
pipenv shell
flask run
生产环境
gunicorn main:app -b 0.0.0.0:5000
部署到 Vercel
Docker 部署
创建docker容器 docker run -dt --name pyrsshub -p 5000:5000 hillerliao/pyrsshub:latest
Requirements
- Python 3.8
Description
Languages
Python
68.2%
HTML
31%
CSS
0.5%
Dockerfile
0.3%