关于这个参数的官方文档描述 :

-a, --batch-file FILE            File containing URLs to download ('-' for
                                 stdin), one URL per line. Lines starting
                                 with '#', ';' or ']' are considered as
                                 comments and ignored.

–batch-file批量下载网络视频方法,编辑文本文件list.txt

https://www.youtube.com/watch?v=7UdiKpPAvgA
https://www.youtube.com/watch?v=7UdiKpPAvgA
https://www.youtube.com/watch?v=7UdiKpPAvgA

下载

youtube-dl --batch-file /root/list.txt

只获取视频列表内的真实下载地址而不解析

youtube-dl -g -a /root/list.txt

更新方法:

sudo pip install -U youtube-dl

Last modification:June 5, 2020
如果觉得我的文章对你有用,请随意赞赏