【发布时间】:2021-06-27 13:17:11
【问题描述】:
这是我的代码
from pytube import YouTube
a=YouTube("https://www.youtube.com/watch?v=vvpb8IdDZZI")
#to print title
print("\n")
print("******************title*****************")
print("the title is:"+a.title)
错误是
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
但是网址存在!!!我已经从浏览器本身复制了这个网址 我也升级了我的pytube
【问题讨论】:
-
您确定这是无效的代码吗?它对我有用。
-
尝试更新pytube模块here
标签: python visual-studio-code error-handling