Kanji
・クラウドエンジニア / フリーランス ・1993年生まれ ・愛媛県出身 / 東京都渋谷区在住 ・AWS歴5年 プロフィールの詳細
目次
pip install yt-dlp
~/.bash_profile
~/.zshrc
pip show yt-dlp | egrep ^Location # 出力例 Location: /Users/user01/.pyenv/versions/3.12.1/lib/python3.12/site-packages
# ~/.bash_profile や ~/.zshrc に以下のように追記 export PATH=$PATH:/Users/user01/.pyenv/versions/3.12.1/lib/python3.12/site-packages/yt_dlp
% youtube-dl "https://www.youtube.com/watch?v=lVfIDu1GqzI" [youtube] lVfIDu1GqzI: Downloading webpage [youtube] lVfIDu1GqzI: Downloading player 22f02d3d ERROR: Signature extraction failed: Traceback (most recent call last): File "/Users/user01/.venv/lib/python3.11/site-packages/youtube_dl/extractor/youtube.py", line 1360, in _decrypt_signature func = self._extract_signature_function( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/user01/.venv/lib/python3.11/site-packages/youtube_dl/extractor/youtube.py", line 1274, in _extract_signature_function res = self._parse_sig_js(code) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/user01/.venv/lib/python3.11/site-packages/youtube_dl/extractor/youtube.py", line 1343, in _parse_sig_js initial_function = jsi.extract_function(funcname) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/user01/.venv/lib/python3.11/site-packages/youtube_dl/jsinterp.py", line 245, in extract_function raise ExtractorError('Could not find JS function %r' % funcname) youtube_dl.utils.ExtractorError: Could not find JS function 'decodeURIComponent'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output. (caused by ExtractorError("Could not find JS function 'decodeURIComponent'; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.")); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see https://yt-dl.org/update on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
https://www.youtube.com/watch?v=lVfIDu1GqzI
# ダウンロードしたいフォルダへ移動 cd ~/Downloads # 【広告なし⧸作業用BGM】2024年流行った神曲メドレー!をダウンロード yt-dlp -f wa "https://www.youtube.com/watch?v=lVfIDu1GqzI"