File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 563, in error
Result = self. _call_chain(*args)
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 502, in _call_chain
Result = func(*args)
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 755, in http_error_302
Return self. Parent. Open(New, timeout = req. Timeout)
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 531, in open
Response = meth(req, response)
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 640, in http_response
Response = self. Parent. Error(
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 569, in error
Return self. _call_chain(*args)
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 502, in _call_chain
Result = func(*args)
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 649, in http_error_default
Raise HTTPError(req. Full_url, code, msg, hdrs, fp)
Urllib. Error. HTTPError: HTTP Error 410: Gone
PS C:\Users\efe\Desktop\Çalışma> C: CD 'c:\Users\efe\Desktop\Çalışma'; & 'C:\Users\efe\AppData\Local\Programs\Python\Python38\python.exe' 'c:\Users\efe\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\lib\python\debugpy\launcher' '57213' '--' 'c:\Users\efe\Desktop\Çalışma\main.py'
Traceback (most recent call last):
File "c:\Users\efe\Desktop\Ãal²■ma\main.py", line 48, in download
YouTube(link).streams.get_highest_resolution().download()
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\site-packages\pytube\__main__.py", line 91, in __init__
self.prefetch()
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\site-packages\pytube\__main__.py", line 181, in prefetch
Self. Vid_info_raw = request. Get(self. Vid_info_url)
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\site-packages\pytube\request.py", line 36, in get
Return _execute_request(url).read().decode("utf-8")
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\site-packages\pytube\request.py", line 24, in _execute_request
Return urlopen(request) # nosec
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 222, in urlopen
Return opener. Open(URL, data, timeout)
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 531, in open
Response = meth(req, response)
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 640, in http_response
Response = self. Parent. Error(
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 563, in error
Result = self. _call_chain(*args)
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 502, in _call_chain
Result = func(*args)
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 755, in http_error_302
Return self. Parent. Open(New, timeout = req. Timeout)
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 531, in open
Response = meth(req, response)
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 640, in http_response
Response = self. Parent. Error(
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 569, in error
Return self. _call_chain(*args)
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 502, in _call_chain
Result = func(*args)
File "C:\Users\efe\AppData\Local\Programs\Python\Python38\lib\urllib\request.py", line 649, in http_error_default
Raise HTTPError(req. Full_url, code, msg, hdrs, fp)
Urllib. Error. HTTPError: HTTP Error 410: Gone
Orayı yanlışlıkla silmişim ama önceden de vardı. Yine aynı hata.
pardon kodu nasıl öyle yapıyorsunuz
Arkadaşlar problemi buldum ama çözemedim. Problem pytubenin buglu olmasıymış.