网淘吧来吧,欢迎您!

返回首页 微信
微信
手机版
手机版

Agent Reach

2026-03-27 新闻来源:网淘吧 围观:16
电脑广告
手机广告

Agent Reach — 使用指南

适用于13+个平台的上游工具。直接调用它们。

运行agent-reach doctor以检查哪些渠道可用。

⚠️ 工作区规则

切勿在Agent工作区中创建文件。请使用/tmp/目录存放临时输出,并使用~/.agent-reach/目录存放持久化数据。

网页 — 任何URL

curl -s "https://r.jina.ai/URL"

网页搜索 (Exa)

mcporter call 'exa.web_search_exa(query: "query", numResults: 5)'
mcporter call 'exa.get_code_context_exa(query: "code question", tokensNum: 3000)'

推特/X (xreach)

xreach search "query" -n 10 --json          # search
xreach tweet URL_OR_ID --json                # read tweet (supports /status/ 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-download -o "/tmp/%(id)s" "URL"
                                             # download subtitles, then read the .vtt file
yt-dlp --dump-json "ytsearch5:query"         # search

哔哩哔哩 (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-download -o "/tmp/%(id)s" "URL"

服务器IP可能会收到412错误。请使用--cookies-from-browser chrome或配置代理。

Reddit

curl -s "https://www.reddit.com/r/SUBREDDIT/hot.json?limit=10" -H "User-Agent: agent-reach/1.0"
curl -s "https://www.reddit.com/search.json?q=QUERY&limit=10" -H "User-Agent: agent-reach/1.0"

服务器IP可能会收到403错误。请改用Exa进行搜索,或配置代理。

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
gh issue view 123 -R owner/repo

小红书 / XiaoHongShu (mcporter)

mcporter call 'xiaohongshu.search_feeds(keyword: "query")'
mcporter call 'xiaohongshu.get_feed_detail(feed_id: "xxx", xsec_token: "yyy")'
mcporter call 'xiaohongshu.get_feed_detail(feed_id: "xxx", xsec_token: "yyy", load_all_comments: true)'
mcporter call 'xiaohongshu.publish_content(title: "标题", content: "正文", images: ["/path/img.jpg"], tags: ["tag"])'

需要登录。使用 Cookie-Editor 导入 cookie。

抖音 / Douyin (mcporter)

mcporter call 'douyin.parse_douyin_video_info(share_link: "https://v.douyin.com/xxx/")'
mcporter call 'douyin.get_douyin_download_link(share_link: "https://v.douyin.com/xxx/")'

无需登录。

微信公众号 / WeChat Articles

搜索(miku_ai):

python3 -c "
import asyncio
from miku_ai import get_wexin_article
async def s():
    for a in await get_wexin_article('query', 5):
        print(f'{a[\"title\"]} | {a[\"url\"]}')
asyncio.run(s())
"

阅读(Camoufox — 可绕过微信反爬虫机制):

cd ~/.agent-reach/tools/wechat-article-for-ai && python3 main.py "https://mp.weixin.qq.com/s/ARTICLE_ID"

微信公众号文章无法通过 Jina Reader 或 curl 读取。必须使用 Camoufox。

LinkedIn (mcporter)

mcporter call 'linkedin.get_person_profile(linkedin_url: "https://linkedin.com/in/username")'
mcporter call 'linkedin.search_people(keyword: "AI engineer", limit: 10)'

备用方案:curl -s "https://r.jina.ai/https://linkedin.com/in/username"

RSS (feedparser)

RSS

python3 -c "
import feedparser
for e in feedparser.parse('FEED_URL').entries[:5]:
    print(f'{e.title} — {e.link}')
"

故障排除

  • 频道无法工作?运行agent-reach doctor— 显示状态和修复说明。
  • Twitter 获取失败?请确保undici已安装:npm install -g undici配置代理:agent-reach configure proxy URL

设置频道("帮我配 XXX")

如果频道需要设置(如cookies、Docker等),请获取安装指南:https://raw.githubusercontent.com/Panniantong/agent-reach/main/docs/install.md

用户仅提供cookies。其他所有事项均由您负责。

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏
文章底部电脑广告
手机广告位-内容正文底部
上一篇:Best Image Generation 下一篇:React Expert

相关文章

您是本站第291471名访客 今日有273篇新文章/评论