Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

1.1K
Vistas
Pytube: urllib.error.HTTPError: HTTP Error 410: Desaparecido

He estado recibiendo este error en varios programas por ahora. Intenté actualizar pytube, reinstalarlo, probé algunas correcciones, cambié las URL y el código, pero nada parece funcionar.

 from pytube import YouTube #ask for the link from user link = input("Enter the link of YouTube video you want to download: ") yt = YouTube(link) #Showing details print("Title: ",yt.title) print("Number of views: ",yt.views) print("Length of video: ",yt.length) print("Rating of video: ",yt.rating) #Getting the highest resolution possible ys = yt.streams.get_highest_resolution() #Starting download print("Downloading...") ys.download() print("Download completed!!")

y este es el código de error:

 File "C:\Users\Madjid\PycharmProjects\pythonProject\app2.py", line 6, in <module> yt = YouTube(link) File "C:\Users\Madjid\PycharmProjects\pythonProject\venv\lib\site-packages\pytube\__main__.py", line 91, in __init__ self.prefetch() File "C:\Users\Madjid\PycharmProjects\pythonProject\venv\lib\site-packages\pytube\__main__.py", line 181, in prefetch self.vid_info_raw = request.get(self.vid_info_url) File "C:\Users\Madjid\PycharmProjects\pythonProject\venv\lib\site-packages\pytube\request.py", line 36, in get return _execute_request(url).read().decode("utf-8") File "C:\Users\Madjid\PycharmProjects\pythonProject\venv\lib\site-packages\pytube\request.py", line 24, in _execute_request return urlopen(request) # nosec File "E:\Python\lib\urllib\request.py", line 214, in urlopen return opener.open(url, data, timeout) File "E:\Python\lib\urllib\request.py", line 523, in open response = meth(req, response) File "E:\Python\lib\urllib\request.py", line 632, in http_response response = self.parent.error( File "E:\Python\lib\urllib\request.py", line 555, in error result = self._call_chain(*args) File "E:\Python\lib\urllib\request.py", line 494, in _call_chain result = func(*args) File "E:\Python\lib\urllib\request.py", line 747, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "E:\Python\lib\urllib\request.py", line 523, in open response = meth(req, response) File "E:\Python\lib\urllib\request.py", line 632, in http_response response = self.parent.error( File "E:\Python\lib\urllib\request.py", line 561, in error return self._call_chain(*args) File "E:\Python\lib\urllib\request.py", line 494, in _call_chain result = func(*args) File "E:\Python\lib\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
over 4 years ago · Santiago Trujillo
3 Respuestas
Responde la pregunta

0

Si aún no lo ha hecho, instale Git en su PC: https://git-scm.com/download/win

Luego abra la ventana de comandos como administrador e instale este parche:

 python -m pip install git+https://github.com/Zeecka/pytube@fix_1060
over 4 years ago · Santiago Trujillo Denunciar

0

Intente actualizar, hay una solución en la versión 11.0.0:

 python -m pip install --upgrade pytube
over 4 years ago · Santiago Trujillo Denunciar

0

Puede obtener la última versión del repositorio oficial de GitHub https://github.com/pytube/pytube

 python3 -m pip install git+https://github.com/pytube/pytube

Actualizado a pytube 11.0.2

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda