博主好,是不是触发了反爬机制
⏺ 脚本不支持 cookies 参数。让我直接使用 yt-dlp 下载:
⏺ Bash(cd ~/.claude/skills/youtube-clipper && yt-dlp --cookies-from-browser chrome -f timeout: 5m 0s
"bestvideo[height<=1080]+bestaudio/best[height<=1080]" --write-sub --write-auto-s…)
⎿ Error: Exit code 2
Usage: yt-dlp [OPTIONS] URL [URL...]
yt-dlp: error: no such option: --convert-format
⏺ Bash(cd ~/.claude/skills/youtube-clipper && yt-dlp --cookies-from-browser chrome -f timeout: 5m 0s
"bestvideo[height<=1080][ext=mp4]+bestaudio[ext=m4a]/best[height<=1080][ext=mp4]/…)
⎿ Error: Exit code 1
WARNING: [youtube] [Errno 54] Connection reset by peer. Retrying (1/3)...
WARNING: [youtube] [Errno 54] Connection reset by peer. Retrying (2/3)...
WARNING: [youtube] rdURhrS4xHI: n challenge solving failed: Some formats may be missing. Ensure you have a supported
JavaScript runtime and challenge solver script distribution installed. Review any warnings presented before this message.
For more details, refer to https://github.com/yt-dlp/yt-dlp/wiki/EJS
[download] Got error: HTTP Error 403: Forbidden
ERROR: fragment 1 not found, unable to continue
WARNING: Unable to download format 96-8. Skipping...
[download] Got error: HTTP Error 403: Forbidden
ERROR: fragment 1 not found, unable to continue
WARNING: Unable to download format 96-7. Skipping...
… +207 lines (ctrl+o to see all)
⏺ 遇到了 403 错误。让我先列出可用的格式:
⏺ Bash(cd ~/.claude/skills/youtube-clipper && yt-dlp --cookies-from-browser chrome --list-formats timeout: 1m 0s
"https://www.youtube.com/watch?v=rdURhrS4xHI" 2>&1 | grep -A 200 "for…)
⎿ (No content)
⏺ Bash(cd ~/.claude/skills/youtube-clipper && yt-dlp --cookies-from-browser chrome -f "best" --write-sub timeout: 5m
--write-auto-sub --sub-langs "en,en-auto" --ignore-errors -o "…) 0s
⎿ WARNING: Unable to download format 91-7. Skipping...
[info] Testing format 91-6
[download] Got error: HTTP Error 403: Forbidden
… +27 lines (ctrl+o to expand)
⏺ 所有高清格式都被阻止了。让我尝试使用更低清晰度的格式:
⏺ Bash(cd ~/.claude/skills/youtube-clipper && yt-dlp --cookies-from-browser chrome -f "best[height<=720]" timeout: 5m
--write-sub --write-auto-sub --sub-langs "en,en-auto" --extra…) 0s
⎿ Extracting cookies from chrome
Extracted 2830 cookies from chrome
[youtube] Extracting URL: https://www.youtube.com/watch?v=rdURhrS4xHI
… +4 lines (ctrl+o to expand)
⏺ Bash(cd ~/.claude/skills/youtube-clipper && yt-dlp -f "best[height<=720]" --write-sub --write-auto-sub timeout: 5m
--sub-langs "en,en-auto" --extractor-args "youtube:player_clie…) 0s
⎿ Error: Exit code 1
WARNING: [youtube] No title found in player responses; falling back to title from initial data. Other metadata may also be
missing
ERROR: [youtube] rdURhrS4xHI: Sign in to confirm you’re not a bot. Use --cookies-from-browser or --cookies for the
authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass
cookies. Also see https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies for tips on effectively
exporting YouTube cookies
[youtube] Extracting URL: https://www.youtube.com/watch?v=rdURhrS4xHI
[youtube] rdURhrS4xHI: Downloading webpage
[youtube] rdURhrS4xHI: Downloading android player API JSON

博主好,是不是触发了反爬机制
⏺ 脚本不支持 cookies 参数。让我直接使用 yt-dlp 下载:
⏺ Bash(cd ~/.claude/skills/youtube-clipper && yt-dlp --cookies-from-browser chrome -f timeout: 5m 0s
"bestvideo[height<=1080]+bestaudio/best[height<=1080]" --write-sub --write-auto-s…)
⎿ Error: Exit code 2
⏺ Bash(cd ~/.claude/skills/youtube-clipper && yt-dlp --cookies-from-browser chrome -f timeout: 5m 0s
"bestvideo[height<=1080][ext=mp4]+bestaudio[ext=m4a]/best[height<=1080][ext=mp4]/…)
⎿ Error: Exit code 1
WARNING: [youtube] [Errno 54] Connection reset by peer. Retrying (1/3)...
WARNING: [youtube] [Errno 54] Connection reset by peer. Retrying (2/3)...
WARNING: [youtube] rdURhrS4xHI: n challenge solving failed: Some formats may be missing. Ensure you have a supported
JavaScript runtime and challenge solver script distribution installed. Review any warnings presented before this message.
For more details, refer to https://github.com/yt-dlp/yt-dlp/wiki/EJS
[download] Got error: HTTP Error 403: Forbidden
ERROR: fragment 1 not found, unable to continue
WARNING: Unable to download format 96-8. Skipping...
[download] Got error: HTTP Error 403: Forbidden
ERROR: fragment 1 not found, unable to continue
WARNING: Unable to download format 96-7. Skipping...
… +207 lines (ctrl+o to see all)
⏺ 遇到了 403 错误。让我先列出可用的格式:
⏺ Bash(cd ~/.claude/skills/youtube-clipper && yt-dlp --cookies-from-browser chrome --list-formats timeout: 1m 0s
"https://www.youtube.com/watch?v=rdURhrS4xHI" 2>&1 | grep -A 200 "for…)
⎿ (No content)
⏺ Bash(cd ~/.claude/skills/youtube-clipper && yt-dlp --cookies-from-browser chrome -f "best" --write-sub timeout: 5m
--write-auto-sub --sub-langs "en,en-auto" --ignore-errors -o "…) 0s
⎿ WARNING: Unable to download format 91-7. Skipping...
[info] Testing format 91-6
[download] Got error: HTTP Error 403: Forbidden
… +27 lines (ctrl+o to expand)
⏺ 所有高清格式都被阻止了。让我尝试使用更低清晰度的格式:
⏺ Bash(cd ~/.claude/skills/youtube-clipper && yt-dlp --cookies-from-browser chrome -f "best[height<=720]" timeout: 5m
--write-sub --write-auto-sub --sub-langs "en,en-auto" --extra…) 0s
⎿ Extracting cookies from chrome
Extracted 2830 cookies from chrome
[youtube] Extracting URL: https://www.youtube.com/watch?v=rdURhrS4xHI
… +4 lines (ctrl+o to expand)
⏺ Bash(cd ~/.claude/skills/youtube-clipper && yt-dlp -f "best[height<=720]" --write-sub --write-auto-sub timeout: 5m
--sub-langs "en,en-auto" --extractor-args "youtube:player_clie…) 0s
⎿ Error: Exit code 1
WARNING: [youtube] No title found in player responses; falling back to title from initial data. Other metadata may also be
missing
ERROR: [youtube] rdURhrS4xHI: Sign in to confirm you’re not a bot. Use --cookies-from-browser or --cookies for the
authentication. See https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp for how to manually pass
cookies. Also see https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies for tips on effectively
exporting YouTube cookies