
Wechat Article Search
This tool searches WeChat public account articles through keyword queries and returns titles, summaries, publication times, and source account names. It's a Node.js script that scrapes Sogou's WeChat search, automatically resolves real WeChat article URLs when possible (though anti-scraping measures often block this), and outputs either formatted text or JSON. You can limit results up to 50 articles, filter to the last 60 days, and save to file. The formatted output is readable, the JSON mode works well for programmatic processing. Fair warning from the docs themselves: this is for learning and research only, excessive use will get your IP banned, and expect plenty of URL resolution failures due to anti-scraping protections.
- skills.sh installs
- 161
- GitHub stars
- 2
- last updated
- Aug 21, 2026
Install
$ npx -y skills add zsxink/skills-hub --skill wechat-article-search --agent claude-codeInstalls into .claude/skills of the current project.
Files
微信公众号文章搜索说明
适用场景
- 用户说“帮我搜某个关键词的公众号文章/最近文章”
- 需要快速拿到:标题、摘要、发布时间、公众号名称、可访问链接
工作流程
步骤1: 确认已安装依赖包
该脚本依赖 NodeJS 依赖包 cheerio,进入技能目录安装:
cd skills/wechat-article-search && npm install
步骤2: 确认搜索词语数量
1、 确认关键词与数量
步骤3: 执行搜索命令
1、执行搜索命令(默认会自动尝试解析真实微信文章链接)
node scripts/search_wechat.js "关键词"
特殊流程(可选)
- 执行包含数量限制的搜索命令
node scripts/search_wechat.js "关键词" -n 15
- 如果用户需要保存结果到文件,执行命令
node scripts/search_wechat.js "关键词" -n 20 -o result.json
- 如果用户需要 JSON 格式输出,执行命令
node scripts/search_wechat.js "关键词" json
参数说明
query:搜索关键词(必填)-n, --num:返回数量(默认 10,最大 50)-o, --output:输出 JSON 文件路径(可选)-r, --resolve-url:解析真实的微信文章URL(默认启用)--no-resolve-url:跳过真实链接解析,直接返回搜狗转链json, --json:直接输出 JSON 格式数据,便于程序处理
输出格式
格式化输出(默认)
以易读的文本格式输出搜索结果,每篇文章包含以下信息:
序号. 文章标题
📌 来源: 公众号名称 | ⏰ 时间信息
💡 文章内容概要
🔗 [查看详情](<完整链接>)
时间信息格式:
- 如果有完整时间戳:
HH:MM (相对时间描述),例如:23:45 (1小时前) - 如果只有相对时间:直接显示,例如:
2小时前
输出特点:
- 每篇文章之间有空行分隔
- 来源和时间在同一行显示
- 链接显示完整的URL地址,使用
[查看详情](<链接>)格式
JSON 输出(使用 json 参数)
Sponsors
Details
- Repository
- github.com/zsxink/skills-hub
- First seen
- Jun 3, 2026