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

使用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.xdnf.cn/news/15067.html

相关文章:

  • 北京-4年功能测试2年空窗-报培训班学测开-第四十八天
  • 【世纪龙科技】几何G6新能源汽车结构原理教学软件
  • 60 美元玩转 Li-Fi —— 开源 OpenVLC 平台入门(附 BeagleBone Black 驱动简单解析)
  • 飞算Java AI:专为 Java 开发者打造的智能开发引擎
  • uniapp制作一个个人页面
  • C++11堆操作深度解析:std::is_heap与std::is_heap_until原理解析与实践
  • [Reverse1] Tales of the Arrow
  • intellij idea的重命名shift+f6不生效(快捷键被微软输入法占用)
  • 【数据库基础 1】MySQL环境部署及基本操作
  • TypeScript---泛型
  • (7)机器学习小白入门 YOLOv:机器学习模型训练详解
  • map数据结构在Golang中是无序的,并且键值对的查找效率较高的原因
  • Linux 命令:tail
  • 如何查看自己本地的公网IP地址?内网环境网络如何开通服务器公网ip提供互联网访问?
  • Lecture #20:Database Logging
  • 深度解析 DApp 开发:从技术架构到商业落地的全链路解决
  • Jenkins 分布式和并发构建
  • RK3566/RK3568 Android11 修改selinux模式
  • 用 React Three Fiber 实现 3D 城市模型的扩散光圈特效
  • 策略模式实现
  • BP神经网络对时序数据进行分类
  • 用Python制作抖音风格短视频:从图片到精美视频的完整指南
  • Auto-GPT 简易教程
  • USB数据丢包真相:为什么log打印会导致高频USB数据丢包?
  • JavaScript加强篇——第三章 事件大全(完整版)
  • imx6ull-系统移植篇2—— U-Boot 命令使用(上)
  • vscode.window对象讲解
  • “SRP模型+”多技术融合在生态环境脆弱性评价模型构建、时空格局演变分析与RSEI 指数的生态质量评价及拓展应用
  • 深入解码 Docker 镜像与容器的奇妙世界
  • 飞算JavaAI:革新Java开发的智能助手