Giter Club home page Giter Club logo

rsshub-python's Introduction

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 方法

  1. fork这份仓库
  2. 在spiders文件夹下创建新的爬虫目录和脚本,编写爬虫,参考我的爬虫教程
  3. 在blueprints的main.py中添加对应的路由(按照之前路由的格式)
  4. 在templates中的main目录下的feeds.html上写上说明文档,同样可参照格式写
  5. 提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

部署到 deta.dev

Deploy

安装 Deta CLI
在终端运行deta login; 在项目根目录运行deta new --python pyrsshub
pyrsshub 目录下的 .deta 文件夹移到根目录; 运行deta deploy; 获取网址 https://<micro_name>.deta.dev/; 更新deta update

部署到 Vercel

Deploy with Vercel

Docker 部署

制作镜像文件 docker build -t pyrsshub:latest .

创建docker容器 docker run -dit --name pyrsshub -p 8080:80 pyrsshub:latest

rsshub-python's People

Contributors

hillerliao avatar alphardex avatar airchaoz avatar dependabot[bot] avatar flyingicedragon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.