Skip to content

Instantly share code, notes, and snippets.

@ohiofi
Created October 8, 2023 17:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohiofi/c2ebd2d0a2460d85a1d9ac9080476d87 to your computer and use it in GitHub Desktop.
Save ohiofi/c2ebd2d0a2460d85a1d9ac9080476d87 to your computer and use it in GitHub Desktop.
Date: Sun, 8 Oct 2023 13:52:00 -0400 (EDT)
https://www.youtube.com/watch?v=mNiqpBNE9ik
[debug] Command-line config: ['--ffmpeg-location', '/usr/local/bin/ffmpeg', '--autonumber-start', '1', '--force-ipv4', '-f', 'best
video[ext=mp4][vcodec!*=av01]+bestaudio[ext=m4a]/mp4', '--cookies', 'youtube.com_cookies.txt', '--restrict-filenames', '--download
-archive', '/Volumes/WDPassport2/YouTube/download_log.txt', '--max-downloads', '3', '--write-info-json', '--write-thumbnail', '--a
dd-metadata', '--hls-prefer-native', '--verbose', '-o', '/Volumes/WDPassport2/YouTube/%(uploader)s/%(uploader)s.S10E08%(autonumber
)1d.ep_%(title)s [%(id)s].%(ext)s', 'https://www.youtube.com/watch?v=mNiqpBNE9ik']
[debug] Encodings: locale utf-8, fs utf-8, pref utf-8, out utf-8 (No ANSI), error utf-8 (No ANSI), screen utf-8 (No ANSI)
[debug] yt-dlp version 2023.02.17 [a0a7c01]
[debug] Python 3.11.2 (CPython arm64 64bit) - macOS-13.5.2-arm64-arm-64bit (OpenSSL 3.0.8 7 Feb 2023)
[debug] exe versions: ffmpeg N-107374-g046b05082d-tessus (setts)
[debug] Optional libraries: pycrypto-3.16.0, sqlite3-2.6.0
[debug] Proxy map: {}
[debug] Loaded 1782 extractors
[debug] Loading archive file '/Volumes/WDPassport2/YouTube/download_log.txt'
[youtube] Extracting URL: https://www.youtube.com/watch?v=mNiqpBNE9ik
[youtube] mNiqpBNE9ik: Downloading webpage
[debug] [youtube] Extracted SAPISID cookie
[debug] [youtube] Copying __Secure-3PAPISID cookie to SAPISID cookie
[youtube] mNiqpBNE9ik: Downloading android player API JSON
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto,
filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[info] mNiqpBNE9ik: Downloading 1 format(s): 136+140
[info] Downloading video thumbnail 41 ...
WARNING: Unable to download video thumbnail 41: HTTP Error 404: Not Found
[info] Downloading video thumbnail 40 ...
WARNING: Unable to download video thumbnail 40: HTTP Error 404: Not Found
[info] Downloading video thumbnail 39 ...
WARNING: Unable to download video thumbnail 39: HTTP Error 404: Not Found
[info] Downloading video thumbnail 38 ...
WARNING: Unable to download video thumbnail 38: HTTP Error 404: Not Found
[info] Downloading video thumbnail 37 ...
WARNING: Unable to download video thumbnail 37: HTTP Error 404: Not Found
[info] Downloading video thumbnail 36 ...
[info] Writing video thumbnail 36 to: /Volumes/WDPassport2/YouTube/The_Late_Show_with_Stephen_Colbert/The_Late_Show_with_Stephen_C
olbert.S10E081.ep_Jon_Stewart_Takes_Over_Colbert_s_Late_Show_Desk [mNiqpBNE9ik].jpg
[info] Writing video metadata as JSON to: /Volumes/WDPassport2/YouTube/The_Late_Show_with_Stephen_Colbert/The_Late_Show_with_Steph
en_Colbert.S10E081.ep_Jon_Stewart_Takes_Over_Colbert_s_Late_Show_Desk [mNiqpBNE9ik].info.json
[debug] Invoking http downloader on "https://rr3---sn-cgxx1xapox-jhie.googlevideo.com/videoplayback?expire=1696809123&ei=Q-wiZbzFA
tCXir4PodiTyA4&ip=75.118.240.3&id=o-AF-XX-KLEmF7ZK0FDqboTdmzaU0EZ4YHuk7f3RUhoUiC&itag=136&source=youtube&requiressl=yes&mh=XL&mm=3
1%2C29&mn=sn-cgxx1xapox-jhie%2Csn-vgqsknlr&ms=au%2Crdu&mv=m&mvi=3&pl=22&initcwndbps=797500&spc=UWF9f1_vg62SXBGEf57etMD5geJC6DlGUNd
JPG9Cig&vprv=1&svpuc=1&mime=video%2Fmp4&gir=yes&clen=43029509&dur=810.342&lmt=1557049042551587&mt=1696787112&fvip=5&keepalive=yes&
fexp=24007246&beids=24350017&c=ANDROID&txp=5535432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cspc%2Cvprv%2Csvpuc
%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AGM4YrMwRQIhAJYhXTNNbUOxrEgXKq9O3ue3x0NVTeyUK_b2tqijtqX5AiAd3Tm3_QqRibqmMTFCfqpvfZ4QIh5SlNHF5
unWN6WLBA%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AK1ks_kwRQIhAL9Mu9rpaGr1sxqE1kf3u68ItSh2kRJI3ki4Eych
z5uRAiB7QJX_xWJVUH2p_RGwXWHRu_BkUVFLSv3rvYZqilvBRg%3D%3D"
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 3213, in process_info
partial_success, real_download = self.dl(fname, new_info)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 2954, in dl
return fd.download(name, new_info, subtitle)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/yt_dlp/downloader/common.py", line 444, in download
ret = self.real_download(filename, info_dict)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/yt_dlp/downloader/http.py", line 376, in real_download
establish_connection()
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/yt_dlp/downloader/http.py", line 129, in establish_connection
ctx.data = self.ydl.urlopen(request)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/yt_dlp/YoutubeDL.py", line 3726, in urlopen
return self._opener.open(req, timeout=self._socket_timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 525, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 634, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 557, in error
result = self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 749, in http_error_302
return self.parent.open(new, timeout=req.timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 525, in open
response = meth(req, response)
^^^^^^^^^^^^^^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 634, in http_response
response = self.parent.error(
^^^^^^^^^^^^^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 563, in error
return self._call_chain(*args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 496, in _call_chain
result = func(*args)
^^^^^^^^^^^
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/urllib/request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
(END)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment