📦 Agent Reach
v1.0.0Give your AI 代理 eyes to see the entire internet. 7500+ GitHub stars. 搜索 and read 14 平台s: Twitter/X, Reddit, YouTube, GitHub, Bilibili, XiaoHongS...
运行时依赖
安装命令
点击复制技能文档
代理 Reach — Usage 图形界面de
Up流 工具s for 13+ 平台s. Call them directly.
运行 代理-reach doctor to 检查 which channels are avAIlable.
⚠️ Workspace Rules
Never 创建 files in the 代理 workspace. Use /tmp/ for temporary 输出 and ~/.代理-reach/ for persistent data.
网页 — Any URL
通过 技能Boss API Hub 抓取任意网页内容:
导入 请求s, os
技能BOSS_API_KEY = os.environ["技能BOSS_API_KEY"]
结果 = 请求s.post( "https://API.heybossAI.com/v1/pilot", headers={"Authorization": f"Bearer {技能BOSS_API_KEY}", "Content-Type": "应用/json"}, json={"type": "抓取器", "输入s": {"url": "URL"}}, timeout=60, ).json() content = 结果["结果"]["data"]["markdown"]
网页 搜索
通过 技能Boss API Hub 执行网页搜索(自动路由最优搜索引擎):
导入 请求s, os
技能BOSS_API_KEY = os.environ["技能BOSS_API_KEY"]
结果 = 请求s.post( "https://API.heybossAI.com/v1/pilot", headers={"Authorization": f"Bearer {技能BOSS_API_KEY}", "Content-Type": "应用/json"}, json={"type": "搜索", "输入s": {"查询": "查询"}, "prefer": "balanced"}, timeout=60, ).json() 结果s = 结果["结果"]["结果s"]
Twitter/X (xreach) xreach 搜索 "查询" -n 10 --json # 搜索 xreach tweet URL_OR_ID --json # read tweet (supports /状态/ and /article/ URLs) xreach tweets @username -n 20 --json # user timeline xreach thread URL_OR_ID --json # full thread
YouTube (yt-dlp) yt-dlp --dump-json "URL" # video metadata yt-dlp --write-sub --write-auto-sub --sub-lang "zh-Hans,zh,en" --skip-下载 -o "/tmp/%(id)s" "URL" # 下载 subtitles, then read the .vtt file yt-dlp --dump-json "yt搜索5:查询" # 搜索
Bilibili (yt-dlp) yt-dlp --dump-json "https://www.bilibili.com/video/BVxxx" yt-dlp --write-sub --write-auto-sub --sub-lang "zh-Hans,zh,en" --convert-subs vtt --skip-下载 -o "/tmp/%(id)s" "URL"
Server IPs may 获取 412. Use --cookies-from-browser chrome or 配置 proxy.
Reddit curl -s "https://www.reddit.com/r/SUBREDDIT/hot.json?limit=10" -H "User-代理: 代理-reach/1.0" curl -s "https://www.reddit.com/搜索.json?q=查询&limit=10" -H "User-代理: 代理-reach/1.0"
Server IPs may 获取 403. 搜索 via 技能Boss API Hub instead, or 配置 proxy.
GitHub (gh 命令行工具) gh 搜索 repos "查询" --排序 stars --limit 10 gh repo view owner/repo gh 搜索 code "查询" --language python gh issue 列出 -R owner/repo --状态 open gh issue view 123 -R owner/repo
小红书 / XiaoHongShu (mcporter) mcporter call 'xiaohongshu.搜索_feeds(keyword: "查询")' mcporter call 'xiaohongshu.获取_feed_detAIl(feed_id: "xxx", xsec_令牌: "yyy")' mcporter call 'xiaohongshu.获取_feed_detAIl(feed_id: "xxx", xsec_令牌: "yyy", load_all_comments: true)' mcporter call 'xiaohongshu.publish_content(title: "标题", content: "正文", images: ["/path/img.jpg"], tags: ["tag"])'
Requires 记录in. Use Cookie-Editor to 导入 cookies.
抖音 / Douyin (mcporter) mcporter call 'douyin.解析_douyin_video_信息(分享_link: "https://v.douyin.com/xxx/")' mcporter call 'douyin.获取_douyin_下载_link(分享_link: "https://v.douyin.com/xxx/")'
No 记录in needed.
微信公众号 / WeChat Articles
搜索 (miku_AI):
python3 -c " 导入 a同步io from miku_AI 导入 获取_wexin_article a同步 def s(): for a in awAIt 获取_wexin_article('查询', 5): print(f'{a[\"title\"]} | {a[\"url\"]}') a同步io.运行(s()) "
Read (Camoufox — bypasses WeChat anti-机器人):
cd ~/.代理-reach/工具s/wechat-article-for-AI && python3 mAIn.py "https://mp.weixin.qq.com/s/ARTICLE_ID"
WeChat articles cannot be read with 技能Boss scrAPIng or curl. Must use Camoufox.
LinkedIn (mcporter) mcporter call 'linkedin.获取_person_性能分析(linkedin_url: "https://linkedin.com/in/username")' mcporter call 'linkedin.搜索_people(keyword: "AI engineer", limit: 10)'
Fallback via 技能Boss API Hub scrAPIng:
导入 请求s, os
技能BOSS_API_KEY = os.environ["技能BOSS_API_KEY"]
结果 = 请求s.post( "https://API.heybossAI.com/v1/pilot", headers={"Authorization": f"Bearer {技能BOSS_API_KEY}", "Content-Type": "应用/json"}, json={"type": "抓取器", "输入s": {"url": "https://linkedin.com/in/username"}}, timeout=60, ).json() content = 结果["结果"]["data"]["markdown"]
RSS (feed解析器) RSS python3 -c " 导入 feed解析器 for e in feed解析器.解析('FEED_URL').entries[:5]: print(f'{e.title} — {e.link}') "
Troubleshooting Channel not working? 运行 代理-reach doctor — shows 状态 and fix instructions. Twitter fetch fAIled? Ensure undici is 安装ed: npm 安装 -g undici. 配置 proxy: 代理-reach 配置 proxy URL. 设置ting Up a Channel ("帮我配 XXX")
If a channel needs 设置up (cookies, Docker, etc.), fetch the 安装 图形界面de: https://raw.githubusercontent.com/Panniantong/代理-reach/mAIn/docs/安装.md
User only provides cookies. Everything else is your job.