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:
@@ -93,6 +93,8 @@ xreach tweets @username --json -n 20
|
|||||||
|
|
||||||
### YouTube (yt-dlp)
|
### YouTube (yt-dlp)
|
||||||
|
|
||||||
|
> ⚠️ 服务器 IP 可能触发 YouTube 反爬("Sign in to confirm you're not a bot")。遇到时加 `--cookies-from-browser chrome` 或通过代理。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Get video metadata
|
# Get video metadata
|
||||||
yt-dlp --dump-json "https://www.youtube.com/watch?v=xxx"
|
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)
|
# Search (yt-dlp ytsearch)
|
||||||
yt-dlp --dump-json "ytsearch5:query"
|
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)
|
### Bilibili (yt-dlp)
|
||||||
|
|
||||||
|
> ⚠️ 服务器 IP 可能被 Bilibili 拦截(412 错误)。建议通过代理访问,或加 `--cookies-from-browser chrome`。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Get video metadata
|
# Get video metadata
|
||||||
yt-dlp --dump-json "https://www.bilibili.com/video/BVxxx"
|
yt-dlp --dump-json "https://www.bilibili.com/video/BVxxx"
|
||||||
|
|
||||||
# Download subtitles
|
# 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"
|
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)
|
### Reddit (JSON API)
|
||||||
|
|||||||
Reference in New Issue
Block a user