【发布时间】:2018-11-25 22:57:39
【问题描述】:
我安装了pytube,运行它时出现错误(我使用的是python 3.7),问题似乎出在pytube 本身,我正在使用该模块的确切教程代码。
import pytube
link ='https://www.youtube.com/watch?v=9bZkp7q19f0'
yt = pytube.YouTube(link)
stream = yt.streams.first()
finished = stream.download()
print('Download is complete')
Traceback (most recent call last):
File "C:\automate the boring stuff\youtubetry.py", line 6, in <module>
yt = pytube.YouTube(link)
File "C:\Users\diodi\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pytube\__main__.py", line 88, in __init__
self.prefetch_init()
[Finished in 6.0s with exit code 1]
【问题讨论】:
标签: python python-3.x youtube