Giter Site home page Giter Site logo

alist-autorss's Introduction

Alist-MikananiRss

蜜柑计划的RSS订阅源中自动获取番剧更新并通过Alist离线下载至对应网盘

准备工作

  1. 请自行参照Alist项目文档部署Alist,并搭建好Aria2离线下载
  2. 自行注册蜜柑计划账户,订阅番剧,获取订阅链接

如何使用

  1. 下载源码
git clone https://github.com/TwooSix/Alist-MikananiRss.git && cd Alist-MikananiRss
  1. 安装依赖(Python>=3.9)
pip install -r requirements.txt
  1. 在目录下新建一个config.py配置文件,并填写配置文件,具体填写示例见example.py
    • DOMAIN:字符串,你的alist部署域名,如www.example.com
    • USER_NAME, PASSWORD:字符串,你的Alist账户密码
    • DOWNLOAD_PATH:字符串,你的下载文件夹,从登陆用户的根目录开始,如AliyunPan/Anime
    • REGEX_PATTERN:字典,你的正则表达式规则,填写方式为{name: regex}(当然也可以复制用我写的),如{"1080": r"(1080[pP])}"
    • SUBSCRIBE_URL: 字符串,你的RSS订阅链接
    • FILTERS: 列表,使用的正则表达式规则,填写名字即可,如["1080"]
    • INTERVAL_TIME: 整数,执行的间隔时间
  2. 运行代码:python main.py
    (后台执行则为:nohup python main.py > /dev/null 2>&1 &)
  3. Enjoy

开启订阅更新通知(可选)

Telegram 通知

config.py中加入以下配置

TELEGRAM_NOTIFICATION = True # 开启Telegram通知,为 False 则关闭
BOT_TOKEN = "你的 BOT_TOKEN"
USER_ID = "你的 USER_ID"

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.