From e620a1db8f7879ee4ba56e044d801f2194d0c430 Mon Sep 17 00:00:00 2001 From: Panniantong Date: Fri, 27 Feb 2026 11:25:29 +0100 Subject: [PATCH] docs: add cookie/proxy warnings for YouTube and Bilibili in SKILL.md YouTube may trigger 'Sign in to confirm you're not a bot' on server IPs. Bilibili may return 412 on non-residential IPs. Added --cookies-from-browser fallback examples for both channels. Fixes #47 --- agent_reach/skill/SKILL.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/agent_reach/skill/SKILL.md b/agent_reach/skill/SKILL.md index 8799945..4b9e15b 100644 --- a/agent_reach/skill/SKILL.md +++ b/agent_reach/skill/SKILL.md @@ -93,6 +93,8 @@ xreach tweets @username --json -n 20 ### YouTube (yt-dlp) +> ⚠️ 服务器 IP 可能触发 YouTube 反爬("Sign in to confirm you're not a bot")。遇到时加 `--cookies-from-browser chrome` 或通过代理。 + ```bash # Get video metadata yt-dlp --dump-json "https://www.youtube.com/watch?v=xxx" @@ -103,16 +105,24 @@ yt-dlp --write-sub --write-auto-sub --sub-lang "zh-Hans,zh,en" --skip-download - # Search (yt-dlp ytsearch) yt-dlp --dump-json "ytsearch5:query" + +# If blocked ("Sign in to confirm you're not a bot"): +yt-dlp --cookies-from-browser chrome --dump-json "URL" ``` ### Bilibili (yt-dlp) +> ⚠️ 服务器 IP 可能被 Bilibili 拦截(412 错误)。建议通过代理访问,或加 `--cookies-from-browser chrome`。 + ```bash # Get video metadata yt-dlp --dump-json "https://www.bilibili.com/video/BVxxx" # Download subtitles yt-dlp --write-sub --write-auto-sub --sub-lang "zh-Hans,zh,en" --convert-subs vtt --skip-download -o "/tmp/%(id)s" "URL" + +# If blocked (412 / login required): +yt-dlp --cookies-from-browser chrome --dump-json "URL" ``` ### Reddit (JSON API)