Code Monkey home page Code Monkey logo

jable_downloader's Introduction

jable_downloader

download jable tv tool

PRs Welcome Scrutinizer code quality (GitHub/Bitbucket) Github_workflow GitHub Pipenv locked Python version

GitHub top language GitHub Scrutinizer build (GitHub/Bitbucket) GitHub code size in bytes GitHub Repo stars

Introduction

下载jable tv视频助手:heart_eyes:

支持功能:

  • 指定视频url下载到指定目录
  • 添加订阅某女星或者类别的视频,将该影星或类别的视频同步下载到本地
  • 支持断点续传,支持防止重复下载
  • 支持配置代理
  • 支持下载视频完毕后下载封面

Usage

使用方法

# 安装依赖
pip install -r requirements.txt

# 配置网络代理见Config小节(可选)

# 查看帮助
python main.py --help

# 指定视频url下载,指定多个url会按队列逐个下载(下面url替换为自己的url)
python main.py videos  https://jable.tv/videos/111111/  https://jable.tv/videos/222222/


# 添加对某类别的订阅,如添加`桜空もも`的订阅,添加订阅不会发起下载
python main.py subscription --add https://jable.tv/models/sakura-momo/

# 添加对多类别交集的订阅,如下添加`桜空もも的中文字幕`的订阅,添加订阅不会发起下载
python main.py subscription --add https://jable.tv/models/sakura-momo/ https://jable.tv/categories/chinese-subtitle/
# 查看当前订阅
python main.py subscription --get
# 当前共18个订阅,内容如下:
# 1       : 订阅名: ***           订阅链接: ***
# ......
# 18       : 订阅名: ***           订阅链接: ***

# 下载/同步所有订阅内容到本地(会跳过目标目录里的已下载内容)
python main.py subscription --sync-videos
# 下载/同步指定订阅号(1和2)的内容到本地(会跳过目标目录里的已下载内容)
# --ids不指定默认同步下载所有订阅
python main.py subscription --sync-videos --ids 1 2


# h265编码压缩视频(可选)(体积可以减少超过一半)
ffmpeg -i input.mp4 -c:v libx265 -vtag hvc1 -c:a copy output.mkv

Config(Optional)

配置项(json文件)说明

配置文件提供程序自定义选项,并记录一些订阅信息,配置文件可选 读取配置文件的路径是执行命令的工作路径,文件名为config.json

  • downloadVideoCover: 是否下载封面,默认不下载
  • downloadInterval: 每个视频之间的下载间隔,默认2s
  • outputDir:下载的输出目录,默认当前工作目录
  • proxies: 网络代理配置(需要同时配置http和https)
  • save_vpn_traffic: 节省vpn代理流量(默认不开启),开启后,从CDN下载视频的请求优先不使用代理,请求失败重试时再使用代理,由于存在失败重试切换代理,可能降低下载速度
  • subscriptions: 订阅的视频类别,支持models/tags等,建议通过命令行python main.py subscription --add添加
  • videoIdBlockList: 需要跳过的番号列表,默认为空

如下是订阅了桜空もも的中文字幕视频

{
    "downloadVideoCover": false,     
    "downloadInterval": 300,
    "outputDir": "./", 
    "proxies": {
        "http": "http://127.0.0.1:7890",
        "https": "http://127.0.0.1:7890"
    },
    "save_vpn_traffic": false,
    "videoIdBlockList": ["abc-123", "def-456"],
    "subscriptions": [
        [
            {
                "url": "https://jable.tv/models/sakura-momo/",
                "name": "桜空もも"
            },
            {
                "url": "https://jable.tv/categories/chinese-subtitle/",
                "name": "中文字幕"
            }
        ]
    ]
}

Reference

JableTVDownload

jable_downloader's People

Contributors

2niuhe 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.