
This pulls WeChat public account articles by keyword and gives you the title, summary, publish time, source account, and link. It's a Node.js script that uses cheerio to scrape search results, so you'll need that installed first. You can limit results with the -n flag (default 10, max 50), save to JSON with -o, or try to resolve the real article URLs with -r, though that last one often fails due to anti-scraping measures. Useful if you're doing research or gathering Chinese language sources on tech, finance, education, or social topics. Just know this hits rate limits fast and the real URL resolution is spotty at best.
$ npx -y skills add wuchubuzai2018/expert-skills-hub --skill wechat-article-search --agent claude-codeInstalls into .claude/skills of the current project.
该脚本依赖NodeJS依赖包 cheerio,建议先执行全局安装或在项目中安装:
npm install -g cheerio
1、 确认关键词与数量
1、执行常规搜索命令
node scripts/search_wechat.js "关键词"
node scripts/search_wechat.js "关键词" -n 15
node scripts/search_wechat.js "关键词" -n 20 -o result.json
node scripts/search_wechat.js "关键词" -n 5 -r
query:搜索关键词(必填)-n, --num:返回数量(默认 10,最大 50)-o, --output:输出 JSON 文件路径(可选)-r, --resolve-url:尝试把中间链接解析成微信文章真实链接(会额外请求每条结果)文章标题、文章地址、文章概要、发布时间、来源公众号名称
Sponsors