Giter Site home page Giter Site logo

yt-dlp-server's Introduction

YT-DLP Server

YT-DLP Server 是基于 YT-DLP 的网页服务器版本,支持iOS快捷指令进行远程推送。

icon.png

环境要求

  • Python 3.6 或更高版本
  • 为了方便地安装所需的依赖,请使用以下命令:
pip install -r requirements.txt

文件列表

  • yt_dlp_server.py: 主程序
  • YT-DLPServerPush.user.js: 游猴脚本
  • Dockerfile: 用于构建和设置Docker容器的脚本
  • start.sh: 用于在Docker环境下通过获取环境变量来启动yt_dlp_server.py
  • 运行环境检测.bat: 适用于Windows的运行环境检测脚本

功能介绍

  • 支持主流网站如YouTube、91(其他网站可以自行尝试)
  • 支持通过API提交下载请求
  • 默认使用16个线程进行暴力下载
  • 支持IPv6
  • 支持下载链接日志
  • 支持多任务并行下载
  • 支持游猴脚本(提供Web-UI 设置服务器地址)
  • 支持IPv6
  • 提供Docker生成配置文件
  • 在Docker宿主机上,需要确保给start.sh脚本赋予执行权限

使用说明

使用以下命令启动服务器:

python yt_dlp_server.py -l 0.0.0.0 -p 7777 -d download –diy=”–all-subs”

选项说明:

  • -l, --host 设置监听地址(默认:0.0.0.0)
  • -p, --port 设置监听端口(默认:7777)
  • -d, --dir 设置下载目录路径(默认:download)。例如,使用 -d /path/to/your/download 来指定自定义下载目录。
  • -6, --ipv6 使用此选项以设置监听IPv6地址,不需要值。默认情况下监听IPv4的0.0.0.0。
  • --diy 允许添加自定义yt-dlp启动参数。例如,可以通过增加 --diy="--all-subs" 参数来下载所有字幕。

示例:

  • 启动服务器,不带任何自定义yt-dlp参数:

python yt_dlp_server.py -l 0.0.0.0 -p 7777 -d download

  • 启动服务器,并使用自定义yt-dlp参数(如下载所有字幕):

python yt_dlp_server.py -l 0.0.0.0 -p 7777 -d download –diy=”–all-subs”

  • GET 提交方式:http://127.0.0.1:7777/download?url=https://www.example.com/video
  • POST 提交方式:http://127.0.0.1:7777/download

使用表单,url=https://www.example.com/videocookie=xxx(可选,请把 JSON 抓包的头部 Cookie 写入参数,程序会自动转换为 Netscape 格式并保存至 cookies.txt

docker项目地址:https://registry.hub.docker.com/r/wuvomi/yt_dlp_server/

IMG_7061

yt-dlp-server's People

Contributors

wuvomi avatar

Watchers

 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.