with yt_dlp.YoutubeDL(ydl_opts) as ydl:
info = ydl.extract_info(searchword, download = False)
title = info["title"]
url = searchword
将ydl_opts中的'nocheckcertificate': opts.no_check_certificate, 改为True。
更多ydl_opts选项参考下面文章:
本文介绍了如何在Python中使用withyt_dlp库的YoutubeDL功能,通过extract_info方法获取视频信息并指定nocheckcertificate选项为True以跳过证书检查,同时提及了参考PythonYoutube-dl库的文档以了解更多下载选项。
840

被折叠的 条评论
为什么被折叠?



