Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/350.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/316.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何使用youtube dl脚本从播放列表中的某个索引开始下载?_Python_Youtube Dl - Fatal编程技术网

Python 如何使用youtube dl脚本从播放列表中的某个索引开始下载?

Python 如何使用youtube dl脚本从播放列表中的某个索引开始下载?,python,youtube-dl,Python,Youtube Dl,如何使用youtube dl将播放列表从某个数字开始下载到某个上限 我试图在代码中使用: youtube-dl -o '~/Documents/%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s - %(title)s.%(ext)s' URL 它在中间停了下来。我想从索引I第个编号的视频重新启动进程,而不是从头开始。youtube dl--help,: 这样,选项播放列表开始编号有助于你在中间开始播放列表,由号码指

如何使用
youtube dl
将播放列表从某个数字开始下载到某个上限

我试图在代码中使用:

youtube-dl -o '~/Documents/%(playlist)s/%(chapter_number)s - %(chapter)s/%(playlist_index)s - %(title)s.%(ext)s' URL
它在中间停了下来。我想从索引
I
第个编号的视频重新启动进程,而不是从头开始。

youtube dl--help
,:


这样,选项<代码>播放列表开始编号有助于你在中间开始播放列表,由<代码>号码<代码>指定。

< P>我的播放列表中总共有135个视频。我已经成功下载了38个。所以我手动使用了这个命令

youtube-dl --playlist-start 39 -u uname@gmail.com -p mypassword https://www.udemy.com/learn-ethical-hacking-from-scratch/learn/v4/content

它正在下载我剩下的97个视频。

非常感谢,它帮了我很多。。但是我如何从一个特定的数字来计算视频呢?这给我下载了正确的视频,但是从1号开始,而不是从我插入的1号开始
错误:无法下载网页:(由URLRERROR(1',ssl.c:504:ERROR:1407742E:ssl例程:SSL23_GET_SERV ER_HELLO:tlsv1警报协议版本)引起)
你能帮我下载视频吗。@HunterrJ你能告诉我你用来下载视频的命令吗?我试过,
D:\tutorials>youtube dl-u email-p passwordhttps://www.udemy.com/data-analysis-with-pandas/learn/v4/
@hunterj您是否尝试附加“-playlist start 1”要从第一个视频开始?@hunterj首先必须安装python脚本,然后只有您才能运行该命令
youtube-dl --playlist-start 39 -u uname@gmail.com -p mypassword https://www.udemy.com/learn-ethical-hacking-from-scratch/learn/v4/content