当前位置: 首页 > news >正文

使用you-get命令下载视频/音频/图像

1、安装Python

官网:https://www.python.org/
下载地址:https://www.python.org/downloads/
当前版本:Python 3.13.5

2、使用pip安装you-get

pip install you-get# pip install --upgrade you-get

3、查看用法

~ # you-get 
usage: you-get [OPTION]... URL...A tiny downloader that scrapes the weboptions:-V, --version         Print version and exit-h, --help            Print this help message and exitDry-run options:(no actual downloading)-i, --info            Print extracted information-u, --url             Print extracted information with URLs--json                Print extracted URLs in JSON formatDownload options:-n, --no-merge        Do not merge video parts--no-caption          Do not download captions (subtitles, lyrics, danmaku, ...)--post, --postfix     Postfix downloaded files with unique identifiers--pre, --prefix PREFIXPrefix downloaded files with string-f, --force           Force overwriting existing files--skip-existing-file-size-checkSkip existing file without checking file size-F, --format STREAM_IDSet video format to STREAM_ID-O, --output-filename FILESet output filename-o, --output-dir DIR  Set output directory-p, --player PLAYER   Stream extracted URL to a PLAYER-c, --cookies COOKIES_FILELoad cookies.txt or cookies.sqlite-t, --timeout SECONDSSet socket timeout-d, --debug           Show traceback and other debug info-I, --input-file FILERead non-playlist URLs from FILE-P, --password PASSWORDSet video visit password to PASSWORD-l, --playlist        Prefer to download a playlist-a, --auto-rename     Auto rename same name different files-k, --insecure        ignore ssl errors-m, --m3u8            download video using an m3u8 urlPlaylist optional options:--first FIRST         the first number--last LAST           the last number--size, --page-size PAGE_SIZEthe page size numberProxy options:-x, --http-proxy HOST:PORTUse an HTTP proxy for downloading-y, --extractor-proxy HOST:PORTUse an HTTP proxy for extracting only--no-proxy            Never use a proxy-s, --socks-proxy HOST:PORT or USERNAME:PASSWORD@HOST:PORTUse an SOCKS5 proxy for downloading

4、使用

4.1、查看信息

you-get -i 链接

4.2、下载

# 下载
you-get 链接# 下载:指定输出文件名
you-get -O 输出文件名 链接# 下载:指定输出目录
you-get -o 输出目录 链接

4.3、使用代理

# 使用代理下载(假设代理地址为127.0.0.1:8087)
you-get -x 127.0.0.1:8087 链接

5、支持下载的网站

详见:https://github.com/soimort/you-get#supported-sites

6、详见

https://you-get.org/
https://github.com/soimort/you-get
https://pypi.org/project/you-get/
https://mp.weixin.qq.com/s/t_0dT3-nsh0lSzv5jozyeQ
http://www.dtcms.com/a/274556.html

相关文章:

  • Primer Premier 5分子生物学引物设计软件 PCR引物设计工具
  • 【读代码】开源音乐分离工具Spleeter
  • RabbitMQ 之顺序性保障
  • Java大厂面试故事:谢飞机的互联网医疗系统技术面试(Spring Boot、MyBatis、Kafka、Spring Security、AI等)
  • c++——浅拷贝和深拷贝、浅赋值和深赋值
  • 动态组件和插槽
  • mysql 锁介绍
  • 分布式系统高可用性设计-负载均衡与容错机制深度解析
  • 2025年DevSecOps工具全景图:安全左移时代的国产化突围
  • AGX Xavier 搭建360环视教程【二、环境配置】
  • 【JMeter】执行系统命令
  • git restore
  • Java项目中图片加载路径问题解析
  • 多线程Java
  • Leaflet面试题及答案(1-20)
  • 《汇编语言:基于X86处理器》第7章 整数运算(2)
  • Ubuntu 22.04 Server 虚拟机初始化配置与优化指南
  • 用Python制作抖音风格短视频:从图片到精美视频的完整指南
  • docker-compose安装常用中间件
  • AI产品经理面试宝典第7天:核心算法面试题-上
  • VS 按F12 提示cannot navigate to the symbol under the caret
  • JavaSE——Object
  • 【实时Linux实战系列】现有应用迁移到实时环境的步骤
  • Web安全-Linux基础-01-初识Linux
  • 进程状态 + 进程优先级切换调度-进程概念(5)
  • 小智AI模型接入MCP
  • 【C++】内联函数inline以及 C++入门(4)
  • 【Linux】C++项目分层架构:核心三层与关键辅助
  • 构建一个简单的有监督的异常点检测项目
  • 如何让FastAPI与Celery完美联姻,打造高效异步任务处理系统?