name: internet-reach description: > 互联网平台访问能力。触发场景:(1) 需要搜索/阅读 Twitter、Reddit、LinkedIn、Boss直聘、小红书、抖音, (2) 用户说"搜推特""看Reddit""查LinkedIn"等,(3) 需要检测平台可用性。
Internet Reach — 互联网平台访问
健康检测
zsh scripts/doctor.sh
平台命令速查
Twitter/X(bird CLI)
# 搜索推文
bird search "query" --json -n 10
# 读单条推文
bird read https://x.com/user/status/123 --json
# 读用户时间线
bird timeline @username --json -n 20
# 备用:Jina Reader(无需 Cookie)
curl -s "https://r.jina.ai/https://x.com/user/status/123"
Cookie 配置见 docs/cookie-setup.md
Reddit(零依赖)
# 读子版块热帖
curl -s "https://www.reddit.com/r/python/hot.json?limit=10" \
-H "User-Agent: agent-search/1.0"
# 读帖子+评论
curl -s "https://www.reddit.com/r/python/comments/POST_ID.json" \
-H "User-Agent: agent-search/1.0"
# 搜索
curl -s "https://www.reddit.com/search.json?q=query&limit=10" \
-H "User-Agent: agent-search/1.0"
本地电脑直接访问,服务器可能需要代理。
LinkedIn(Jina Reader,零配置)
# 读公开 Profile
curl -s "https://r.jina.ai/https://linkedin.com/in/username"
# 读公司页面
curl -s "https://r.jina.ai/https://linkedin.com/company/xxx"
Boss直聘(Jina Reader,零配置)
curl -s "https://r.jina.ai/https://www.zhipin.com/job_detail/xxx"
小红书(需要 Docker + MCP,按需启用)
# 启用
docker run -d --name xiaohongshu-mcp -p 18060:18060 xpzouying/xiaohongshu-mcp
mcporter config add xiaohongshu http://localhost:18060/mcp
# 使用
mcporter call 'xiaohongshu.search_feeds(keyword: "query")'
mcporter call 'xiaohongshu.get_feed_detail(feed_id: "xxx", xsec_token: "yyy")'
抖音(需要 MCP,按需启用)
mcporter call 'douyin.parse_douyin_video_info(share_link: "https://v.douyin.com/xxx/")'
详见 https://github.com/yzfly/douyin-mcp-server
YouTube / B站(yt-dlp)
# 视频信息
yt-dlp --dump-json "URL"
# 字幕提取
yt-dlp --write-sub --write-auto-sub --sub-lang "zh-Hans,zh,en" --skip-download -o "/tmp/%(id)s" "URL"
# 搜索
yt-dlp --dump-json "ytsearch5:query"
GitHub(gh CLI)
gh search repos "query" --sort stars --limit 10
gh repo view owner/repo
gh search code "query" --language python
gh issue list -R owner/repo --state open
RSS(feedparser)
python3 -c "
import feedparser
d = feedparser.parse('https://example.com/feed')
for e in d.entries[:5]:
print(f'{e.title} — {e.link}')
"
任意网页(Jina Reader)
curl -s "https://r.jina.ai/URL" -H "Accept: text/markdown"
安全提醒
- Cookie 登录的平台(Twitter、小红书)存在封号风险,务必用专用小号
- Cookie 只存本地,不上传