Python 跳过下载dash manafest

Python 跳过下载dash manafest,python,youtube-dl,Python,Youtube Dl,我正在尝试使用youtube dl对youtube进行爬网。我的目标是让它找到url的缩略图并返回它。不确定是否需要下载仪表板 这是我到目前为止看到的,但它仍然显示“下载dash manafest” 正确的选项是“youtube\u include\u dash\u manifest”:False from __future__ import unicode_literals import youtube_dl class MyLogger(object): def debug(se

我正在尝试使用youtube dl对youtube进行爬网。我的目标是让它找到url的缩略图并返回它。不确定是否需要下载仪表板

这是我到目前为止看到的,但它仍然显示“下载dash manafest”


正确的选项是
“youtube\u include\u dash\u manifest”:False

from __future__ import unicode_literals
import youtube_dl


class MyLogger(object):
    def debug(self, msg):
        print msg
        pass

    def warning(self, msg):
        print msg
        pass

    def error(self, msg):
        print(msg)


def my_hook(d):
    if d['status'] == 'finished':
        print('Done downloading, now converting ...')


ydl_opts = {
    'list_thumbnails:': True,
    '--youtube-skip-dash-manifest':True,
    'logger': MyLogger(),
    'progress_hooks': [my_hook],
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
    ydl.extract_info('http://www.youtube.com/watch?v=BaW_jenozKc',  download=False, process=False)