0%

YT-DLP

YT-DLP是一个全平台的全网视频站点下载器项目

源项目下载地址

https://github.com/yt-dlp/yt-dlp/releases

Windows环境可以直接用Hitomi

https://github.com/KurtBestor/Hitomi-Downloader/releases

如下载macos的执行文件,解压后赋权

1
2
sudo chmod a+rx yt-dlp
chmod +x ffmpeg yt-dlp

在执行文件所在目录里新建yt-dlp.conf配置文档

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
##args 
--output /Volumes/Disk/%(webpage_url_domain)s/%(uploader)s/%(title)s-%(resolution)s.%(ext)s

## Verbosity / Simulation Options
--console-title --progress-template "download-title:%(info.id)s-%(progress.eta)s"

## Video Format Options
--merge-output-format mp4

## Subtitle Options
--sub-langs all,-live_chat

## Post-Processing Options
--embed-subs
--embed-thumbnail
--embed-metadata
--convert-subs srt

## ffmpeg tools for macOS
## --ffmpeg-location /Applications/yt-dlp/ffmpeg
--proxy socks5://127.0.0.1:7890
--concurrent-fragments 20

项目使用方法的中文说明

https://blog.csdn.net/z_y_z_l/article/details/121015231

支持的网站(几乎包含全网站点)

https://ghproxy.com/https://github.com/ytdl-org/youtube-dl/blob/master/docs/supportedsites.md

说明和示范:

–proxy socks5 指向的是本地梯子的端口

下载DannyData小丹尼:

1
/Applications/yt-dlp --yes-playlist "https://www.youtube.com/c/DannyData%E5%B0%8F%E4%B8%B9%E5%B0%BC/videos"

下载小Lin说:

1
/Applications/yt-dlp --yes-playlist "https://www.youtube.com/c/Lindsay%E8%AF%B4/videos"

下载老高與小茉 Mr & Mrs Gao:

1
/Applications/yt-dlp --yes-playlist "https://www.youtube.com/channel/UCMUnInmOkrWN4gof9KlhNmQ/videos"

下载李永乐老师:

1
/Applications/yt-dlp --yes-playlist "https://www.youtube.com/c/%E6%9D%8E%E6%B0%B8%E4%B9%90%E8%80%81%E5%B8%88/videos"

下载科学火箭叔:

1
/Applications/yt-dlp --yes-playlist "https://www.youtube.com/channel/UC8dD8v_uIA7aRzpqaCoIHKg/videos"

下载妈咪说MommyTalk:

1
/Applications/yt-dlp --yes-playlist "https://www.youtube.com/c/%E5%A6%88%E5%92%AA%E8%AF%B4MommyTalk/videos"

下载科技宅小明:

1
/Applications/yt-dlp --yes-playlist "https://www.youtube.com/c/%E7%A7%91%E6%8A%80%E5%AE%85%E5%B0%8F%E6%98%8E/videos"

下载老吴Alien:

1
/Applications/yt-dlp --yes-playlist "https://www.youtube.com/channel/UCqdsQ_zFOQ098kLvIsbWu2w/videos"

下载科学声音:

1
/Applications/yt-dlp --yes-playlist "https://www.youtube.com/channel/UCUBhobCkTLhgfUNRAgHSYmw/videos"

另外,我发现一个BUG,就是偶尔在下载目录里会有垃圾文件,我的解决方法是

1
2
3
4
5
find /Volumes/Disk/ -name "*.ytdl" -print0 |xargs -0 rm -f
find /Volumes/Disk/ -name "*.part*" -print0 |xargs -0 rm -f
find /Volumes/Disk/ -name "*.webp*" -print0 |xargs -0 rm -f
find /Volumes/Disk/ -name "*.srt*" -print0 |xargs -0 rm -f
find /Volumes/Disk/ -name "*.jpg" -print0 |xargs -0 rm -f
-------------本文结束 感谢阅读-------------