Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Youtube HTTP Error with code404 #2890

Closed
wants to merge 1 commit into from
Closed

Conversation

CLY88
Copy link

@CLY88 CLY88 commented May 23, 2021

I:\YoutuDown>you-get -x 127.0.0.1:10809 -o 暮らしの道具店_VFbsp_lRJk4 https://www.youtube.com/watch?v=VFbsp_lRJk4 --debug [DEBUG] get_content: https://www.youtube.com/get_video_info?video_id=VFbsp_lRJk4&eurl=https%3A%2F%2Fy [DEBUG] HTTP Error with code404 [DEBUG] HTTP Error with code404 [DEBUG] HTTP Error with code404 you-get: version 0.4.1520, a tiny downloader that scrapes the web. you-get: Namespace(version=False, help=False, info=False, url=False, json=False, no_merge=False, no_caption=False, force=False, skip_existing_file_size_check=False, format=None, output_filename=None, output_dir='暮らしの道具店_VFbsp_lRJk4', player=None, cookies=None, timeout=600, debug=True, input_file=None, password=None, playlist=False, first=None, last=None, size=None, auto_rename=False, insecure=False, http_proxy='127.0.0.1:10809', extractor_proxy=None, no_proxy=False, socks_proxy=None, stream=None, itag=None, URL=['https://www.youtube.com/watch?v=VFbsp_lRJk4']) Traceback (most recent call last): File "d:\program files\python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "d:\program files\python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "D:\Program Files\Python39\Scripts\you-get.exe\__main__.py", line 7, in <module> File "C:\Users\AppData\Roaming\Python\Python39\site-packages\you_get\__main__.py", line 92, in main main(**kwargs) File "C:\Users\AppData\Roaming\Python\Python39\site-packages\you_get\common.py", line 1813, in main script_main(any_download, any_download_playlist, **kwargs) File "C:\Users\AppData\Roaming\Python\Python39\site-packages\you_get\common.py", line 1695, in script_main download_main( File "C:\Users\AppData\Roaming\Python\Python39\site-packages\you_get\common.py", line 1327, in download_main download(url, **kwargs) File "C:\Users\AppData\Roaming\Python\Python39\site-packages\you_get\common.py", line 1804, in any_download m.download(url, **kwargs) File "C:\Users\AppData\Roaming\Python\Python39\site-packages\you_get\extractor.py", line 48, in download_by_url self.prepare(**kwargs) File "C:\Users\AppData\Roaming\Python\Python39\site-packages\you_get\extractors\youtube.py", line 198, in prepare video_info = parse.parse_qs(get_content('https://www.youtube.com/get_video_info?video_id={}&eurl=https%3A%2F%2Fy'.format(self.vid))) File "C:\Users\AppData\Roaming\Python\Python39\site-packages\you_get\common.py", line 439, in get_content response = urlopen_with_retry(req) File "C:\Users\AppData\Roaming\Python\Python39\site-packages\you_get\common.py", line 417, in urlopen_with_retry raise http_error File "C:\Users\AppData\Roaming\Python\Python39\site-packages\you_get\common.py", line 408, in urlopen_with_retry return request.urlopen(*args, **kwargs) File "d:\program files\python39\lib\urllib\request.py", line 214, in urlopen return opener.open(url, data, timeout) File "d:\program files\python39\lib\urllib\request.py", line 523, in open response = meth(req, response) File "d:\program files\python39\lib\urllib\request.py", line 632, in http_response response = self.parent.error( File "d:\program files\python39\lib\urllib\request.py", line 561, in error return self._call_chain(*args) File "d:\program files\python39\lib\urllib\request.py", line 494, in _call_chain result = func(*args) File "d:\program files\python39\lib\urllib\request.py", line 641, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

Proxy checked ,works fine, can vist youtube and google.
Success downloaded at May 16th.

HTTP Error 404: Not Found
@soimort-bot
Copy link
Collaborator

Hello @CLY88,
Thanks for the Pull Request. We ❤️ our contributors!
Please wait for one of our human maintainers to review your patches. This may take a few days to weeks. Also, please understand that although your Pull Request may or may not be eventually merged, we value all contributions equally.

祝您健康!

@elalemanyo
Copy link

@CLY88 I am also getting the same error, did you find a solution?

@songds
Copy link

songds commented May 23, 2021

C:\Users\songds>you-get -i 'https://www.youtube.com/watch?v=jNQXAC9IVRw' --debug
[DEBUG] get_location: http://'https://www.youtube.com/watch?v=jNQXAC9IVRw'
[DEBUG] get_location: http://'https://www.youtube.com/watch?v=jNQXAC9IVRw'
you-get: version 0.4.1520, a tiny downloader that scrapes the web.
you-get: Namespace(version=False, help=False, info=True, url=False, json=False, no_merge=False, no_caption=False, force=False, skip_existing_file_size_check=False, format=None, output_filename=None, output_dir='.', player=None, cookies=None, timeout=600, debug=True, input_file=None, password=None, playlist=False, first=None, last=None, size=None, auto_rename=False, insecure=False, http_proxy=None, extractor_proxy=None, no_proxy=False, socks_proxy=None, stream=None, itag=None, URL=["'https://www.youtube.com/watch?v=jNQXAC9IVRw'"])
Traceback (most recent call last):
File "d:\programs\python\python39\lib\urllib\request.py", line 1346, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "d:\programs\python\python39\lib\http\client.py", line 1253, in request
self._send_request(method, url, body, headers, encode_chunked)
File "d:\programs\python\python39\lib\http\client.py", line 1299, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "d:\programs\python\python39\lib\http\client.py", line 1248, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "d:\programs\python\python39\lib\http\client.py", line 1008, in _send_output
self.send(msg)
File "d:\programs\python\python39\lib\http\client.py", line 948, in send
self.connect()
File "d:\programs\python\python39\lib\http\client.py", line 919, in connect
self.sock = self._create_connection(
File "d:\programs\python\python39\lib\socket.py", line 822, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "d:\programs\python\python39\lib\socket.py", line 953, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "d:\programs\python\python39\lib\site-packages\you_get\common.py", line 1792, in url_to_module
location = get_location(url) # t.co isn't happy with fake_headers
File "d:\programs\python\python39\lib\site-packages\you_get\common.py", line 393, in get_location
res = urlopen_with_retry(req)
File "d:\programs\python\python39\lib\site-packages\you_get\common.py", line 408, in urlopen_with_retry
return request.urlopen(*args, **kwargs)
File "d:\programs\python\python39\lib\urllib\request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "d:\programs\python\python39\lib\urllib\request.py", line 517, in open
response = self._open(req, data)
File "d:\programs\python\python39\lib\urllib\request.py", line 534, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "d:\programs\python\python39\lib\urllib\request.py", line 494, in _call_chain
result = func(*args)
File "d:\programs\python\python39\lib\urllib\request.py", line 1375, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "d:\programs\python\python39\lib\urllib\request.py", line 1349, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 11001] getaddrinfo failed>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "d:\programs\python\python39\lib\urllib\request.py", line 1346, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "d:\programs\python\python39\lib\http\client.py", line 1253, in request
self._send_request(method, url, body, headers, encode_chunked)
File "d:\programs\python\python39\lib\http\client.py", line 1299, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "d:\programs\python\python39\lib\http\client.py", line 1248, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "d:\programs\python\python39\lib\http\client.py", line 1008, in _send_output
self.send(msg)
File "d:\programs\python\python39\lib\http\client.py", line 948, in send
self.connect()
File "d:\programs\python\python39\lib\http\client.py", line 919, in connect
self.sock = self._create_connection(
File "d:\programs\python\python39\lib\socket.py", line 822, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "d:\programs\python\python39\lib\socket.py", line 953, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "d:\programs\python\python39\lib\runpy.py", line 197, in _run_module_as_main
return run_code(code, main_globals, None,
File "d:\programs\python\python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "D:\Programs\Python\Python39\Scripts\you-get.exe_main
.py", line 7, in
File "d:\programs\python\python39\lib\site-packages\you_get_main
.py", line 92, in main
main(**kwargs)
File "d:\programs\python\python39\lib\site-packages\you_get\common.py", line 1813, in main
script_main(any_download, any_download_playlist, **kwargs)
File "d:\programs\python\python39\lib\site-packages\you_get\common.py", line 1695, in script_main
download_main(
File "d:\programs\python\python39\lib\site-packages\you_get\common.py", line 1327, in download_main
download(url, **kwargs)
File "d:\programs\python\python39\lib\site-packages\you_get\common.py", line 1803, in any_download
m, url = url_to_module(url)
File "d:\programs\python\python39\lib\site-packages\you_get\common.py", line 1794, in url_to_module
location = get_location(url, headers=fake_headers)
File "d:\programs\python\python39\lib\site-packages\you_get\common.py", line 393, in get_location
res = urlopen_with_retry(req)
File "d:\programs\python\python39\lib\site-packages\you_get\common.py", line 408, in urlopen_with_retry
return request.urlopen(*args, **kwargs)
File "d:\programs\python\python39\lib\urllib\request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "d:\programs\python\python39\lib\urllib\request.py", line 517, in open
response = self._open(req, data)
File "d:\programs\python\python39\lib\urllib\request.py", line 534, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "d:\programs\python\python39\lib\urllib\request.py", line 494, in _call_chain
result = func(*args)
File "d:\programs\python\python39\lib\urllib\request.py", line 1375, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "d:\programs\python\python39\lib\urllib\request.py", line 1349, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 11001] getaddrinfo failed>

@liangqi
Copy link

liangqi commented May 23, 2021

Looks like same here with both 0.4.1500 and 0.4.1520 which installed via homebrew on macOS 11.3.1

@therestone
Copy link

run 'pip install youtube-dl' then everything gona beokay

@songds
Copy link

songds commented May 24, 2021 via email

@CLY88
Copy link
Author

CLY88 commented May 24, 2021

run 'pip install youtube-dl' then everything gona beokay

i am a believer ~

@hkc177
Copy link

hkc177 commented May 24, 2021

I got the same problem, I tried running 'pip install you-dl' as other commenter suggested here but still cannot solved it.

@therestone
Copy link

I got the same problem, I tried running 'pip install you-dl' as other commenter suggested here but still cannot solved it.

youtube-dl https://www.youtube.com/watch?v=VFbsp_lRJk4

@hkc177
Copy link

hkc177 commented May 24, 2021

youtube-d

Thank you. My bad, after pip installed the you-dl, I still type "you-get", my fault, real sorry and thanks again.

Repository owner locked as resolved and limited conversation to collaborators May 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants