Search WeChat public account (公众号) articles by keyword. Returns structured JSON with title, summary, publish time, source account, and link — no API key required.
npx skills add zjp1997720/wechat-article-search -g -a codex --skill wechat-article-search -y- Node.js 18+ (tested on Node 20)
- One npm dependency:
cheerio. Runnpm installinside the skill folder after install.
- Keyword search across WeChat public accounts via Sogou WeChat Search — returns 1–50 articles per query.
- Structured output: title, URL, summary, publish datetime, date text, relative time, source account name.
- Optional real-URL resolution (
-r): converts Sogou redirect links intomp.weixin.qq.comdirect links when reachable. - Optional file output (
-o): writes JSON to disk for archival.
The skill drives a single self-contained Node.js script (scripts/search_wechat.js) that queries Sogou WeChat Search (weixin.sogou.com), parses the result HTML with cheerio, and emits structured JSON to stdout. No API keys, no MCP tools, no platform coupling — it works in any agent runtime that can run node.
Search WeChat articles about "Loop Engineering", give me 10.
搜一下"AI培训"相关的公众号文章,要 5 条,保存到 result.json。
node scripts/search_wechat.js "<keyword>" [-n <count>] [-o <output.json>] [-r]| Flag | Default | Description |
|---|---|---|
query |
required | Search keyword |
-n, --num |
10 | Number of results (max 50) |
-o, --output |
stdout | Write JSON to a file |
-r, --resolve-url |
off | Resolve real mp.weixin.qq.com URLs (slower, may fail under anti-bot) |
First run: npm install in the skill folder to pull cheerio.
- Uses public Sogou WeChat Search as the data source. Anti-bot rate limiting can intermittently return empty results or block URL resolution — retry with a different keyword or wait.
-rURL resolution succeeds inconsistently under Sogou's anti-spider policy. Failures keep the Sogou redirect link and seturl_resolved: false.- For study and research only. Do not use for large-scale commercial crawling. Excessive use may get your IP temporarily blocked.
.
├── README.md
├── README.zh-CN.md
├── LICENSE
├── SKILL.md
├── agents/openai.yaml
├── package.json
└── scripts/
└── search_wechat.js
MIT