bash
cd ~/.openclaw/agents/xingchen/workspace/skills/wechat-article-reader
python3 scripts/gzh_article.py <command> [args]
详见 env-guide.md(MPTEXT_API_KEY 和 Cookie 的获取与配置说明)。
命令说明fetch "<url>"抓取单篇文章全文(标题+正文),curl 优先,不需要公众号名full "公众号名" [数量]列出某公众号文章+每篇预览前800字,不含阅读量list "公众号名" [数量]列出文章标题+摘要digest,不含正文mpsearch "<关键字>"按名称搜索公众号,返回名称和fakeidstats "<url>"拿文章标题搜 trends API,返回相似爆款文章的互动数据(新文章可能无结果)trends "<关键词>"查某关键词下的爆款文章列表,含阅读/点赞/评论数据compare --accounts "名1,名2" [--count N]对比多个公众号的文章列表compare --urls "url1,url2"对比多个链接对应的公众号文章列表compare "<关键词>"按关键词查爆款文章(不是对比,是搜索)resolve "<标题>"根据标题搜索并匹配文章链接
命令说明mparticles "<fakeid>" [数量]从 fakeid 查文章列表mparticles_by_url "<url>" [数量]从 URL 提取 biz 再查文章列表(URL 需含 __biz)mpinfo "<fakeid>"查公众号主体信息(公司名、是否认证、原创文章数)mpdownload "<url>" [格式]下载文章正文(mptext 方式,不含标题)
命令P1P2P3fetchcurl(免费)mptextCookiecompare --urlsbiz→mptext正文识别账号名→mptextCookiemparticles_by_urlbiz→mptext正文识别账号名→mptextCookie
命令P1P2listmptextCookiefullmptextCookiecompare --accountsmptextCookieresolvemptextCookiempsearchmptextCookiemparticlesmptextCookiempdownloadmptextcurl
命令唯一路径statstrends APItrendstrends APImpinfomptext
__biz 时走正文识别公众号名路径,无需 biz详细说明见 references/priority.md