youtube-dl 使用–batch-file这个参数就能够自定义列表来批量下载视频,简化操作步骤,提高下载效率;
关于这个参数的官方文档描述:
-a, –batch-file FILE
File containing URLs to download (‘-‘ forstdin), one URL per line. Lines starting with ‘#’, ‘;’ or ‘]’ are considered as comments and ignored.
–batch-file批量下载网络视频方法:
1.新建一个bat列表
vim ~/list.bat
2.内容如下一行一条,以此类推,有多少放多少,不要怂就对了;
https://www.youtube.com/watch?v=-lgcAySBbTA
https://www.youtube.com/watch?v=94k6kEVGZzg
https://www.youtube.com/watch?v=-1Hm41N0dUs
3.批量下载命令如下
有两种方法,第一个命令简化些,推荐第一个
youtube-dl -g -a /root/list.bat
或者
youtube-dl --batch-file /root/list.bat
4.只获取视频列表内的真实下载地址而不解析
youtube-dl -g -a /root/list.bat
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END