我在尝试使用pytube
包从YouTube下载视频时遇到了问题。
我收到了一个"HTTP Error 404: Not Found"
错误。有人熟悉这个错误吗?我一直在努力研究这个问题,但是还没有找到导致这个问题的任何东西。
我将分享我的代码和下面的错误:
from pytube import YouTube
video = YouTube("https://youtu.be/sflWFZKFJgk")
print(video.title)
print("downloading...")
video.streams.get_highest_resolution().download()
print('Downloaded successfully!')
错误:
HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found
发布于 2021-06-18 14:38:00
这里有人成功地使用了最新版本的输精管。我已经完成了https://pypi.org/project/pytube/和https://github.com/nficano/pytube的所有步骤,但仍然存在错误_execute_request。
您已经在Python3.8.5上测试过了吗?
https://stackoverflow.com/questions/67614883
复制相似问题