New advertisers: 50% off your first month with code FIRSTMONTHSee slots
zsxink avatar

Wechat Article Search

Searches WeChat Official Account articles by keyword and returns titles, summaries, publish times, and source accounts.

skills.sh installs
161
GitHub stars
2
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers keyword-based retrieval of recent articles, with results sorted newest first and limited to the past 60 days
  • Includes a Node.js script (scripts/search_wechat.js) with -n for result count, -o for JSON file output, and a json flag for machine-readable output
  • Attempts to resolve real mp.weixin.qq.com links by default, falling back to Sogou redirect links when --no-resolve-url is set or resolution fails
  • Requires the cheerio npm package, installed from the skill directory before first use

Install

$ npx -y skills add zsxink/skills-hub --skill wechat-article-search -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

微信公众号文章搜索说明

适用场景

  • 用户说“帮我搜某个关键词的公众号文章/最近文章”
  • 需要快速拿到:标题、摘要、发布时间、公众号名称、可访问链接

工作流程

步骤1: 确认已安装依赖包

该脚本依赖 NodeJS 依赖包 cheerio,进入技能目录安装:

cd skills/wechat-article-search && npm install

步骤2: 确认搜索词语数量

1、 确认关键词与数量

步骤3: 执行搜索命令

1、执行搜索命令(默认会自动尝试解析真实微信文章链接)

node scripts/search_wechat.js "关键词"

特殊流程(可选)

  1. 执行包含数量限制的搜索命令
node scripts/search_wechat.js "关键词" -n 15
  1. 如果用户需要保存结果到文件,执行命令
node scripts/search_wechat.js "关键词" -n 20 -o result.json
  1. 如果用户需要 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 参数)

Details

Repository
github.com/zsxink/skills-hub
Categories
Research & Academic, Browser Automation & Scraping
First seen
Jun 3, 2026

More from zsxink/skills-hub

All 2

Similar to Wechat Article Search

More Research & Academic