这段代码4天前还能用,现在却出错了。我尝试过使用pytube3,但那也没有帮助。
from pytube import YouTube**
YouTube('https://www.youtube.com/watch?v=JbBsqmKclXE').streams**
HTTPError Traceback (most recent call last)
in ()
----> 1 YouTube('https://www.youtube.com/watch?v=JbBsqmKclXE').streams
14 frames
/usr/lib/python3.7/urllib/request.py in http_error_default(self, req, fp, code, msg, hdrs)
647 class HTTPDefaultErrorHandler(BaseHandler):
648 def http_error_default(self, req, fp, code, msg, hdrs):
--> 649 raise HTTPError(req.full_url, code, msg, hdrs, fp) 650 651 class HTTPRedirectHandler(BaseHandler):
HTTPError: HTTP错误 404:未找到