[BUG] HTTP Error 410
See original GitHub issueBefore creating an issue I checked and there was no open issues This is a new install.
To Reproduce from pytube import YouTube yt_url = ‘https://www.youtube.com/watch?v=8PYhirFS2gQ’ youtube = YouTube(url)
Expected behavior i have not even down loaded one youtube.
Output
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/klint/.local/lib/python3.9/site-packages/pytube/__main__.py", line 91, in __init__
self.prefetch()
File "/home/klint/.local/lib/python3.9/site-packages/pytube/__main__.py", line 181, in prefetch
self.vid_info_raw = request.get(self.vid_info_url)
File "/home/klint/.local/lib/python3.9/site-packages/pytube/request.py", line 36, in get
return _execute_request(url).read().decode("utf-8")
File "/home/klint/.local/lib/python3.9/site-packages/pytube/request.py", line 24, in _execute_request
return urlopen(request) # nosec
File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/usr/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/usr/lib/python3.9/urllib/request.py", line 555, in error
result = self._call_chain(*args)
File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/usr/lib/python3.9/urllib/request.py", line 747, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/usr/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/usr/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/usr/lib/python3.9/urllib/request.py", line 561, in error
return self._call_chain(*args)
File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/usr/lib/python3.9/urllib/request.py", line 641, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 410: Gone
System information Python 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] on linux
pytube.__version__ is '9.6.4'
python3 -m pip install pytube
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top Results From Across the Web
A Complete Guide to the “410 Gone” Error - Kinsta
The “410 Gone” error is a 400 HTTP status code that indicates that the target resource has been permanently deleted.
Read more >How to Fix HTTP Error Code 410 - Elegant Themes
HTTP error 410 or a 'gone error' is different. In a nutshell, it means that the page is gone and is not likely...
Read more >410 Gone Error: What It Is and How to Fix It - Airbrake Blog
The 410 Gone Error is an HTTP response status code indicating that the resource requested by the client has been permanently deleted, ...
Read more >410 Gone Client Error: What It Is And How To Fix
HTTP status code 410 gone client error indicates that the requested resource has been permanently destroyed, 410 Gone and 404 Not Found ...
Read more >Pytube: urllib.error.HTTPError: HTTP Error 410: Gone
This is a bug of the pytube version. You might install an older version of it. Upgrade pytube to 11 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
With pytube 11.0.2, we are again getting the same error . “HTTPError: HTTP Error 410: Gone”
I am using a MAC , python version 3.9.6 my first issue was : urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)> Exception in Tkinter callback.
Solution: Opening Python application and then running the file: Install Certificates.command
then I got the error message: urllib.error.HTTPError: HTTP Error 410: Gone
Solution: Installed pytube 11.0.1 I copied the file from this website https://pypi.org/project/pytube/ and paste it into my terminal.
Thank you very much for the help…