Pytube中的错误< urlopen错误[SSL:cetide_verify_failed]证书验证失败:无法获得本地发行者证书(_SSL.C:997)>
代码:
from pytube import Playlist
playlist = Playlist('https://www.youtube.com/playlist?list=PLWPirh4EWFpEpO6NjjWLbKSCb-wx3hMql')
for video in playlist.videos:
print("Video: ",video)
video.streams.get_highest_resolution().download()
错误我得到:
在
Code:
from pytube import Playlist
playlist = Playlist('https://www.youtube.com/playlist?list=PLWPirh4EWFpEpO6NjjWLbKSCb-wx3hMql')
for video in playlist.videos:
print("Video: ",video)
video.streams.get_highest_resolution().download()
Error I am getting:
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
(对于OSX用户)
换句话说...
(for OSX users)
In another words...
转到 /applications/python3.x并运行'install cultectates.command'
Go to /Applications/Python3.x and run 'Install Certificates.command'
为我工作,您必须转到目录/applications/python3.x,然后运行sudo sh ./install \ certifates.command
Worked for me, You have to go to directory /Applications/Python3.x and then run sudo sh ./Install\ Certificates.command