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
This commit is contained in:
Panniantong 2026-02-27 11:25:29 +01:00
parent 15a2961dfa
commit e620a1db8f

View file

@ -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)