Code Monkey home page Code Monkey logo

mikantoaria2's Introduction

Mikan to Aria2

读取蜜柑计划的rss订阅,下载最新的动画!


需要 python > 3.10

海象运算符 yes! :=

以前用树莓派的时候写的小脚本,现在我已经不用了。

推荐

Auto_Bangumi 基于 Mikan ProjectqBittorrent 的全自动追番整理下载工具。只需要在 Mikan Project 上订阅番剧,就可以全自动追番。并且整理完成的名称和目录可以直接被 PlexJellyfin 等媒体库软件识别,无需二次刮削。

使用方式

  • 修改config/config.default.yml,重命名为config.yml保存到config文件夹下

  • 或者: 使用环境变量MTA_CONFIGPATH指定配置文件,支持yml和json

  • 给脚本加个crontab定时执行,例如:

*/30 * * * * python MikanToAria2/main.py

环境变量

  • MTA_CONFIGPATH 配置文件路径,默认为config/config.yml
  • MTA_HISTORY_FILE 指定历史保存文件路径
  • MTA_TORRENTS_DIR 种子保存文件夹,默认为torrents
  • MTA_MAX_HISTORY 最大加载历史记录,默认为300
  • MTA_USER_AGENT 使用的user-agent
  • HTTP_PROXY & HTTPS_PROXY 代理地址
  • MTA_ARIA2_HOST,MTA_ARIA2_PORT,MTA_ARIA2_SECRET aria2配置

config.yml 说明 (json也行)

aria2 (可选)

  • host 你的aria2的rpc链接地址

  • port rpc端口,默认为6800

  • secret rpc密码

proxy (可选)

  • http 一般是http://127.0.0.1:1080,socks5可以用'socks5://127.0.0.1:1080'

  • https 同上,前缀是https,也可以用'socks5://127.0.0.1:1080'

mikan list[dict, ...],每项含有以下key组成的字典

Tip

ubuntu 使用ssr

sudo apt update
sudo apt install shadowsocks-libev
ss-local -s youserverip -p youserverport -k youserverpasswd -m aes-256-gcm -l 1080 -b 127.0.0.1 &

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.