从蜜柑计划的RSS订阅源中自动获取番剧更新并通过Alist离线下载至对应网盘
- 请自行参照Alist项目文档部署Alist,并搭建好Aria2离线下载
- 自行注册蜜柑计划账户,订阅番剧,获取订阅链接
- 下载源码
git clone https://github.com/TwooSix/Alist-MikananiRss.git && cd Alist-MikananiRss
- 安装依赖(Python>=3.9)
pip install -r requirements.txt
- 在目录下新建一个
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
: 整数,执行的间隔时间
- 运行代码:
python main.py
(后台执行则为:nohup python main.py > /dev/null 2>&1 &
) - Enjoy
在config.py
中加入以下配置
TELEGRAM_NOTIFICATION = True # 开启Telegram通知,为 False 则关闭
BOT_TOKEN = "你的 BOT_TOKEN"
USER_ID = "你的 USER_ID"