Open dsouzabs opened 2 years ago
code taken from pypi and already test utube url work on browser
from pytube import YouTube
YouTube('https://youtu.be/9bZkp7q19f0').streams.get_highest_resolution().download()
result
HTTPError Traceback (most recent call last)
[<ipython-input-27-194b97193b88>](https://localhost:8080/#) in <cell line: 1>()
----> 1 YouTube('https://youtu.be/9bZkp7q19f0').streams.get_highest_resolution().download()
14 frames
[/usr/lib/python3.10/urllib/request.py](https://localhost:8080/#) in http_error_default(self, req, fp, code, msg, hdrs)
641 class HTTPDefaultErrorHandler(BaseHandler):
642 def http_error_default(self, req, fp, code, msg, hdrs):
--> 643 raise HTTPError(req.full_url, code, msg, hdrs, fp)
644
645 class HTTPRedirectHandler(BaseHandler):
HTTPError: HTTP Error 410: Gone
best regards
I'm using urllib3 and I get this error: urllib.error.HTTPError: HTTP Error 410: Gone