# rsshub-python **Repository Path**: hillerliao/rsshub-python ## Basic Information - **Project Name**: rsshub-python - **Description**: clone https://github.com/hillerliao/rsshub-python - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-05-20 - **Last Updated**: 2022-12-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # RSSHub > 🍰 万物皆可 RSS RSSHub 是一个轻量、易于扩展的 RSS 生成器,可以给任何奇奇怪怪的内容生成 RSS 订阅源 本项目是[原RSSHub](https://github.com/DIYgod/RSSHub)的Python实现。 **其实用Python写爬虫要比JS更方便:p** DEMO地址:https://pyrsshub.vercel.app ## 交流 Discord Server: [https://discord.gg/4BZBZuyx7p](https://discord.gg/4BZBZuyx7p) ## RSS过滤 你可以通过以下查询字符串来过滤RSS的内容: - include_title: 搜索标题 - include_description: 搜索描述 - exclude_title: 排除标题 - exclude_description: 排除描述 - limit: 限制条数 ## 贡献 RSS 方法 1. fork这份仓库 2. 在spiders文件夹下创建新的爬虫目录和脚本,编写爬虫,参考我的[爬虫教程](https://juejin.cn/post/6953881777756700709) 3. 在blueprints的main.py中添加对应的路由(按照之前路由的格式) 4. 在templates中的main目录下的feeds.html上写上说明文档,同样可参照格式写 5. 提pr ## 部署 ### 本地测试 首先确保安装了[pipenv](https://github.com/pypa/pipenv) ``` bash git clone https://github.com/alphardex/RSSHub-python cd RSSHub-python pipenv install --dev pipenv shell flask run ``` ### 生产环境 ``` bash gunicorn main:app -b 0.0.0.0:5000 ``` ### 部署到 deta.dev [![Deploy](https://button.deta.dev/1/svg)](https://go.deta.dev/deploy?repo=https://github.com/hillerliao/rsshub-python) 或 安装 [Deta CLI](https://docs.deta.sh/docs/cli/install/); 在终端运行`deta login`; 在项目根目录运行`deta new --python pyrsshub`; 将 `pyrsshub` 目录下的 `.deta` 文件夹移到根目录; 运行`deta deploy`; 获取网址 `https://.deta.dev/`; 更新`deta update` ### 部署到 Vercel [![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fhillerliao%2Frsshub-python) ### Docker 部署 制作镜像文件 `docker build -t pyrsshub:latest .` 创建docker容器 `docker run -dit --name pyrsshub -p 8080:80 pyrsshub:latest`