在尝试从python下载YouTube视频时,我遇到了这个错误AttributeError: 'YouTube' object has no attribute 'get_videos'。
最后一行导致错误。
import pytube
link = ""
yt = pytube.YouTube(link)
videos = yt.get_videos()谢谢!
发布于 2018-04-04 13:47:28
发布于 2020-04-29 09:42:50
from pytube import YouTube
yt = YouTube("Please copy and paste the video link here")
print(yt.title)
stream = yt.streams.first()
stream.download()https://stackoverflow.com/questions/49643206
复制相似问题