yt-dlp / yt-dlp

A feature-rich command-line audio/video downloader
https://discord.gg/H5MNcFW63r
The Unlicense
77.79k stars 6.1k forks source link

Unable to download webpage #7888

Closed git0some closed 11 months ago

git0some commented 11 months ago

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

Checklist

Provide a description that is worded well enough to be understood

python -m yt_dlp -vU --no-check-certificate --geo-verification-proxy --proxy https://179.43.174.134:3128/ https://www.srf.ch/1dd1f496-5873-4087-a1d1-35ca03ec26dc [debug] Command-line config: ['-vU', '--no-check-certificate', '--geo-verification-proxy', '--proxy', 'https://179.43.174.134:3128/', 'https://www.srf.ch/1dd1f496-5873-4087-a1d1-35ca03ec26dc'] [debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8 [debug] yt-dlp version stable@2023.07.06 [b532a3481] (pip) [debug] Python 3.11.2 (CPython AMD64 64bit) - Windows-10-10.0.22621-SP0 (OpenSSL 1.1.1s 1 Nov 2022) [debug] exe versions: ffmpeg 2022-03-07-git-e645a1ddb9-full_build-www.gyan.dev (setts), ffprobe 2022-03-07-git-e645a1ddb9-full_build-www.gyan.dev [debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.1 [debug] Proxy map: {} [debug] Loaded 1855 extractors [debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest Available version: stable@2023.07.06, Current version: stable@2023.07.06 yt-dlp is up to date (stable@2023.07.06) [generic] Extracting URL: https://179.43.174.134:3128/ [generic] 179.43.174: Downloading webpage ERROR: [generic] None: Unable to download webpage: (caused by URLError(TimeoutError('timed out'))) File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 710, in extract ie_result = self._real_extract(url) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\generic.py", line 2430, in _real_extract full_response = self._request_webpage(url, video_id, headers={ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 855, in _request_webpage raise ExtractorError(errmsg, cause=err)

File "C:\Tools\Python311\Lib\urllib\request.py", line 1348, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "C:\Tools\Python311\Lib\http\client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "C:\Tools\Python311\Lib\http\client.py", line 1328, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "C:\Tools\Python311\Lib\http\client.py", line 1277, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "C:\Tools\Python311\Lib\http\client.py", line 1037, in _send_output self.send(msg) File "C:\Tools\Python311\Lib\http\client.py", line 975, in send self.connect() File "C:\Tools\Python311\Lib\http\client.py", line 1447, in connect super().connect() File "C:\Tools\Python311\Lib\http\client.py", line 941, in connect self.sock = self._create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\socket.py", line 851, in create_connection raise exceptions[0] File "C:\Tools\Python311\Lib\socket.py", line 836, in create_connection sock.connect(sa) TimeoutError: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 837, in _request_webpage return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3863, in urlopen return self._opener.open(req, timeout=self._socket_timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 519, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 536, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 496, in _call_chain result = func(*args) ^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\utils_utils.py", line 1514, in https_open return self.do_open( ^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 1351, in do_open raise URLError(err) urllib.error.URLError:

[generic] Extracting URL: https://www.srf.ch/1dd1f496-5873-4087-a1d1-35ca03ec26dc [generic] 1dd1f496-5873-4087-a1d1-35ca03ec26dc: Downloading webpage ERROR: [generic] None: Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 710, in extract ie_result = self._real_extract(url) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\generic.py", line 2430, in _real_extract full_response = self._request_webpage(url, video_id, headers={ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 855, in _request_webpage raise ExtractorError(errmsg, cause=err)

File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 837, in _request_webpage return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3863, in urlopen return self._opener.open(req, timeout=self._socket_timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 525, in open response = meth(req, response) ^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 634, in http_response response = self.parent.error( ^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 563, in error return self._call_chain(args) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 496, in _call_chain result = func(args) ^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 643, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

Provide verbose output that clearly demonstrates the problem

Complete Verbose Output

python -m yt_dlp  -vU --no-check-certificate --geo-verification-proxy --proxy https://179.43.174.134:3128/ https://www.srf.ch/1dd1f496-5873-4087-a1d1-35ca03ec26dc
[debug] Command-line config: ['-vU', '--no-check-certificate', '--geo-verification-proxy', '--proxy', 'https://179.43.174.134:3128/', 'https://www.srf.ch/1dd1f496-5873-4087-a1d1-35ca03ec26dc']
[debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.07.06 [b532a3481] (pip)
[debug] Python 3.11.2 (CPython AMD64 64bit) - Windows-10-10.0.22621-SP0 (OpenSSL 1.1.1s  1 Nov 2022)
[debug] exe versions: ffmpeg 2022-03-07-git-e645a1ddb9-full_build-www.gyan.dev (setts), ffprobe 2022-03-07-git-e645a1ddb9-full_build-www.gyan.dev
[debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.1
[debug] Proxy map: {}
[debug] Loaded 1855 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.07.06, Current version: stable@2023.07.06
yt-dlp is up to date (stable@2023.07.06)
[generic] Extracting URL: https://179.43.174.134:3128/
[generic] 179.43.174: Downloading webpage
ERROR: [generic] None: Unable to download webpage: <urlopen error timed out> (caused by URLError(TimeoutError('timed out')))
  File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 710, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\generic.py", line 2430, in _real_extract
    full_response = self._request_webpage(url, video_id, headers={
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 855, in _request_webpage
    raise ExtractorError(errmsg, cause=err)

  File "C:\Tools\Python311\Lib\urllib\request.py", line 1348, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "C:\Tools\Python311\Lib\http\client.py", line 1282, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "C:\Tools\Python311\Lib\http\client.py", line 1328, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "C:\Tools\Python311\Lib\http\client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "C:\Tools\Python311\Lib\http\client.py", line 1037, in _send_output
    self.send(msg)
  File "C:\Tools\Python311\Lib\http\client.py", line 975, in send
    self.connect()
  File "C:\Tools\Python311\Lib\http\client.py", line 1447, in connect
    super().connect()
  File "C:\Tools\Python311\Lib\http\client.py", line 941, in connect
    self.sock = self._create_connection(
                ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Tools\Python311\Lib\socket.py", line 851, in create_connection
    raise exceptions[0]
  File "C:\Tools\Python311\Lib\socket.py", line 836, in create_connection
    sock.connect(sa)
TimeoutError: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 837, in _request_webpage
    return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Tools\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3863, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Tools\Python311\Lib\urllib\request.py", line 519, in open
    response = self._open(req, data)
               ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Tools\Python311\Lib\urllib\request.py", line 536, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Tools\Python311\Lib\urllib\request.py", line 496, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "C:\Tools\Python311\Lib\site-packages\yt_dlp\utils\_utils.py", line 1514, in https_open
    return self.do_open(
           ^^^^^^^^^^^^^
  File "C:\Tools\Python311\Lib\urllib\request.py", line 1351, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error timed out>

[generic] Extracting URL: https://www.srf.ch/1dd1f496-5873-4087-a1d1-35ca03ec26dc
[generic] 1dd1f496-5873-4087-a1d1-35ca03ec26dc: Downloading webpage
ERROR: [generic] None: Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: 'Not Found'>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 710, in extract
    ie_result = self._real_extract(url)
                ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\generic.py", line 2430, in _real_extract
    full_response = self._request_webpage(url, video_id, headers={
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 855, in _request_webpage
    raise ExtractorError(errmsg, cause=err)

  File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 837, in _request_webpage
    return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Tools\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3863, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Tools\Python311\Lib\urllib\request.py", line 525, in open
    response = meth(req, response)
               ^^^^^^^^^^^^^^^^^^^
  File "C:\Tools\Python311\Lib\urllib\request.py", line 634, in http_response
    response = self.parent.error(
               ^^^^^^^^^^^^^^^^^^
  File "C:\Tools\Python311\Lib\urllib\request.py", line 563, in error
    return self._call_chain(*args)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Tools\Python311\Lib\urllib\request.py", line 496, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "C:\Tools\Python311\Lib\urllib\request.py", line 643, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
bashonly commented 11 months ago

--geo-verification-proxy --proxy

--geo-verification-proxy takes an argument, so yt-dlp is interpreting --proxy as your geo verification proxy and interpreting https://179.43.174.134:3128/ as url input to try and download

git0some commented 11 months ago

according to https://proxyhub.me/de/ch-free-proxy-list.html this is a valid proxy for ch domains

git0some commented 11 months ago

python -m yt_dlp -vU --no-check-certificate --geo-verification-proxy https://179.43.174.134:3128/ --proxy https://179.43.174.134:3128/ https://www.srf.ch/1dd1f496-5873-4087-a1d1-35ca03ec26dc [debug] Command-line config: ['-vU', '--no-check-certificate', '--geo-verification-proxy', 'https://179.43.174.134:3128/', '--proxy', 'https://179.43.174.134:3128/', 'https://www.srf.ch/1dd1f496-5873-4087-a1d1-35ca03ec26dc'] [debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8 [debug] yt-dlp version stable@2023.07.06 [b532a3481] (pip) [debug] Python 3.11.2 (CPython AMD64 64bit) - Windows-10-10.0.22621-SP0 (OpenSSL 1.1.1s 1 Nov 2022) [debug] exe versions: ffmpeg 2022-03-07-git-e645a1ddb9-full_build-www.gyan.dev (setts), ffprobe 2022-03-07-git-e645a1ddb9-full_build-www.gyan.dev [debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.1 [debug] Proxy map: {'http': 'https://179.43.174.134:3128/', 'https': 'https://179.43.174.134:3128/'} [debug] Loaded 1855 extractors [debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest ERROR: Unable to obtain version info (); Please try again later or visit https://github.com/yt-dlp/yt-dlp/releases/latest [generic] Extracting URL: https://www.srf.ch/1dd1f496-5873-4087-a1d1-35ca03ec26dc [generic] 1dd1f496-5873-4087-a1d1-35ca03ec26dc: Downloading webpage ERROR: [generic] None: Unable to download webpage: (caused by URLError(TimeoutError('timed out'))) File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 710, in extract ie_result = self._real_extract(url) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\generic.py", line 2430, in _real_extract full_response = self._request_webpage(url, video_id, headers={ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 855, in _request_webpage raise ExtractorError(errmsg, cause=err)

File "C:\Tools\Python311\Lib\urllib\request.py", line 1348, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "C:\Tools\Python311\Lib\http\client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "C:\Tools\Python311\Lib\http\client.py", line 1328, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "C:\Tools\Python311\Lib\http\client.py", line 1277, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "C:\Tools\Python311\Lib\http\client.py", line 1037, in _send_output self.send(msg) File "C:\Tools\Python311\Lib\http\client.py", line 975, in send self.connect() File "C:\Tools\Python311\Lib\http\client.py", line 1447, in connect super().connect() File "C:\Tools\Python311\Lib\http\client.py", line 941, in connect self.sock = self._create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\socket.py", line 851, in create_connection raise exceptions[0] File "C:\Tools\Python311\Lib\socket.py", line 836, in create_connection sock.connect(sa) TimeoutError: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 837, in _request_webpage return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3863, in urlopen return self._opener.open(req, timeout=self._socket_timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 519, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 536, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 496, in _call_chain result = func(*args) ^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\utils_utils.py", line 1514, in https_open return self.do_open( ^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 1351, in do_open raise URLError(err) urllib.error.URLError:

bashonly commented 11 months ago

[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest ERROR: Unable to obtain version info (); Please try again later or visit https://github.com/yt-dlp/yt-dlp/releases/latest

the proxy does not even work with github

git0some commented 11 months ago

python -m yt_dlp -vU --no-check-certificate --geo-verification-proxy https://185.12.6.85:3128/ --proxy https://185.12.6.85:3128/ https://www.srf.ch/1dd1f496-5873-4087-a1d1-35ca03ec26dc [debug] Command-line config: ['-vU', '--no-check-certificate', '--geo-verification-proxy', 'https://185.12.6.85:3128/', '--proxy', 'https://185.12.6.85:3128/', 'https://www.srf.ch/1dd1f496-5873-4087-a1d1-35ca03ec26dc'] [debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8 [debug] yt-dlp version stable@2023.07.06 [b532a3481] (pip) [debug] Python 3.11.2 (CPython AMD64 64bit) - Windows-10-10.0.22621-SP0 (OpenSSL 1.1.1s 1 Nov 2022) [debug] exe versions: ffmpeg 2022-03-07-git-e645a1ddb9-full_build-www.gyan.dev (setts), ffprobe 2022-03-07-git-e645a1ddb9-full_build-www.gyan.dev [debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.1 [debug] Proxy map: {'http': 'https://185.12.6.85:3128/', 'https': 'https://185.12.6.85:3128/'} [debug] Loaded 1855 extractors [debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest ERROR: Unable to obtain version info (); Please try again later or visit https://github.com/yt-dlp/yt-dlp/releases/latest [generic] Extracting URL: https://www.srf.ch/1dd1f496-5873-4087-a1d1-35ca03ec26dc [generic] 1dd1f496-5873-4087-a1d1-35ca03ec26dc: Downloading webpage ERROR: [generic] None: Unable to download webpage: (caused by URLError(TimeoutError('timed out'))) File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 710, in extract ie_result = self._real_extract(url) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\generic.py", line 2430, in _real_extract full_response = self._request_webpage(url, video_id, headers={ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 855, in _request_webpage raise ExtractorError(errmsg, cause=err)

File "C:\Tools\Python311\Lib\urllib\request.py", line 1348, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "C:\Tools\Python311\Lib\http\client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "C:\Tools\Python311\Lib\http\client.py", line 1328, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "C:\Tools\Python311\Lib\http\client.py", line 1277, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "C:\Tools\Python311\Lib\http\client.py", line 1037, in _send_output self.send(msg) File "C:\Tools\Python311\Lib\http\client.py", line 975, in send self.connect() File "C:\Tools\Python311\Lib\http\client.py", line 1447, in connect super().connect() File "C:\Tools\Python311\Lib\http\client.py", line 941, in connect self.sock = self._create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\socket.py", line 851, in create_connection raise exceptions[0] File "C:\Tools\Python311\Lib\socket.py", line 836, in create_connection sock.connect(sa) TimeoutError: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 837, in _request_webpage return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3863, in urlopen return self._opener.open(req, timeout=self._socket_timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 519, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 536, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 496, in _call_chain result = func(*args) ^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\utils_utils.py", line 1514, in https_open return self.do_open( ^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 1351, in do_open raise URLError(err) urllib.error.URLError:

git0some commented 11 months ago

OK FOUND WORKING PROXY python -m yt_dlp -vU --no-check-certificate --geo-verification-proxy https://185.191.236.162:3128/ --proxy https://185.191.236.162:3128/ https://www.srf.ch/play/tv/film/video/balloon---drama-aus-tibet?urn=urn:srf:video:69fda71a-b3ae-4039-8939-7b56b29c8889 [debug] Command-line config: ['-vU', '--no-check-certificate', '--geo-verification-proxy', 'https://185.191.236.162:3128/', '--proxy', 'https://185.191.236.162:3128/', 'https://www.srf.ch/play/tv/film/video/balloon---drama-aus-tibet?urn=urn:srf:video:69fda71a-b3ae-4039-8939-7b56b29c8889'] [debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8 [debug] yt-dlp version stable@2023.07.06 [b532a3481] (pip) [debug] Python 3.11.2 (CPython AMD64 64bit) - Windows-10-10.0.22621-SP0 (OpenSSL 1.1.1s 1 Nov 2022) [debug] exe versions: ffmpeg 2022-03-07-git-e645a1ddb9-full_build-www.gyan.dev (setts), ffprobe 2022-03-07-git-e645a1ddb9-full_build-www.gyan.dev [debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.1 [debug] Proxy map: {'http': 'https://185.191.236.162:3128/', 'https': 'https://185.191.236.162:3128/'} [debug] Loaded 1855 extractors [debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest ERROR: Unable to obtain version info (); Please try again later or visit https://github.com/yt-dlp/yt-dlp/releases/latest [SRGSSRPlay] Extracting URL: https://www.srf.ch/play/tv/film/video/balloon---drama-aus-tibet?urn=urn:srf:video:69fda71a-b3ae-4039-8939-7b56b29c8889 [SRGSSR] Extracting URL: srgssr:srf:video:69fda71a-b3ae-4039-8939-7b56b29c8889 [SRGSSR] 69fda71a-b3ae-4039-8939-7b56b29c8889: Downloading JSON metadata ERROR: [SRGSSR] 69fda71a-b3ae-4039-8939-7b56b29c8889: For legal reasons, this video is only available in Switzerland. This video is available in Switzerland. You might want to use a VPN or a proxy server (with --proxy) to workaround. Traceback (most recent call last): File "C:\Tools\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1560, in wrapper return func(self, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 1688, in __extract_info ie_result = ie.extract(url) ^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 710, in extract ie_result = self._real_extract(url) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\srgssr.py", line 82, in _real_extract media_data = self._get_media_data(bu, media_type, media_id) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\srgssr.py", line 73, in _get_media_data self.raise_geo_restricted( File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 1179, in raise_geo_restricted raise GeoRestrictedError(msg, countries=countries) yt_dlp.utils.GeoRestrictedError: [SRGSSR] 69fda71a-b3ae-4039-8939-7b56b29c8889: For legal reasons, this video is only available in Switzerland.

git0some commented 11 months ago

neither the above link to embedding webpage nor the direct link to blob work

python -m yt_dlp -vU --no-check-certificate --geo-verification-proxy https://185.191.236.162:3128/ --proxy https://185.191.236.162:3128/ https://www.srf.ch/1dd1f496-5873-4087-a1d1-35ca03ec26dc [debug] Command-line config: ['-vU', '--no-check-certificate', '--geo-verification-proxy', 'https://185.191.236.162:3128/', '--proxy', 'https://185.191.236.162:3128/', 'https://www.srf.ch/1dd1f496-5873-4087-a1d1-35ca03ec26dc'] [debug] Encodings: locale cp1252, fs utf-8, pref cp1252, out utf-8, error utf-8, screen utf-8 [debug] yt-dlp version stable@2023.07.06 [b532a3481] (pip) [debug] Python 3.11.2 (CPython AMD64 64bit) - Windows-10-10.0.22621-SP0 (OpenSSL 1.1.1s 1 Nov 2022) [debug] exe versions: ffmpeg 2022-03-07-git-e645a1ddb9-full_build-www.gyan.dev (setts), ffprobe 2022-03-07-git-e645a1ddb9-full_build-www.gyan.dev [debug] Optional libraries: Cryptodome-3.17, brotli-1.0.9, certifi-2022.12.07, mutagen-1.46.0, sqlite3-2.6.0, websockets-11.0.1 [debug] Proxy map: {'http': 'https://185.191.236.162:3128/', 'https': 'https://185.191.236.162:3128/'} [debug] Loaded 1855 extractors [debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest ERROR: Unable to obtain version info (); Please try again later or visit https://github.com/yt-dlp/yt-dlp/releases/latest [generic] Extracting URL: https://www.srf.ch/1dd1f496-5873-4087-a1d1-35ca03ec26dc [generic] 1dd1f496-5873-4087-a1d1-35ca03ec26dc: Downloading webpage ERROR: [generic] None: Unable to download webpage: (caused by URLError(TimeoutError('timed out'))) File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 710, in extract ie_result = self._real_extract(url) ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\generic.py", line 2430, in _real_extract full_response = self._request_webpage(url, video_id, headers={ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 855, in _request_webpage raise ExtractorError(errmsg, cause=err)

File "C:\Tools\Python311\Lib\urllib\request.py", line 1348, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "C:\Tools\Python311\Lib\http\client.py", line 1282, in request self._send_request(method, url, body, headers, encode_chunked) File "C:\Tools\Python311\Lib\http\client.py", line 1328, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "C:\Tools\Python311\Lib\http\client.py", line 1277, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "C:\Tools\Python311\Lib\http\client.py", line 1037, in _send_output self.send(msg) File "C:\Tools\Python311\Lib\http\client.py", line 975, in send self.connect() File "C:\Tools\Python311\Lib\http\client.py", line 1447, in connect super().connect() File "C:\Tools\Python311\Lib\http\client.py", line 941, in connect self.sock = self._create_connection( ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\socket.py", line 851, in create_connection raise exceptions[0] File "C:\Tools\Python311\Lib\socket.py", line 836, in create_connection sock.connect(sa) TimeoutError: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Tools\Python311\Lib\site-packages\yt_dlp\extractor\common.py", line 837, in _request_webpage return self._downloader.urlopen(self._create_request(url_or_request, data, headers, query)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\YoutubeDL.py", line 3863, in urlopen return self._opener.open(req, timeout=self._socket_timeout) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 519, in open response = self._open(req, data) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 536, in _open result = self._call_chain(self.handle_open, protocol, protocol + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 496, in _call_chain result = func(*args) ^^^^^^^^^^^ File "C:\Tools\Python311\Lib\site-packages\yt_dlp\utils_utils.py", line 1514, in https_open return self.do_open( ^^^^^^^^^^^^^ File "C:\Tools\Python311\Lib\urllib\request.py", line 1351, in do_open raise URLError(err) urllib.error.URLError:

coletdjnz commented 11 months ago

Note that https proxies are not supported (currently they are treated as http). Next release passing an http proxy as https will not work, so keep that in mind.

SP3NGL3R commented 2 months ago

I'm happy to report I was able to fix this issue for myself anyway. Turns out, YT-DLP was using my LAN via the IP/Name issued by TailScale and not that of my local LAN (now I need to figure out that). In PiHole, www.youtube.com was being blocked. Adding the client-name to my client-list and assigning it the group(s) to allow youtube solved it. I'd already put the local IP but a basic PING from the server was also being denied.

--thought this might help someone else.