MCPInstall

wechat-article-search

微信公众号文章智能搜索工具。通过关键词检索获取文章列表,返回标题、摘要、发布时间、来源公众号等详细信息。

Installs
161
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/zsxink/skills-hub --skill wechat-article-search
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads wechat-article-search automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

微信公众号文章搜索说明

适用场景

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

工作流程

步骤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 参数)

{
  "query": "搜索关键词",
  "total": 10,
  "articles": [
    {
      "title": "文章标题",
      "source": "公众号名称",
      "datetime": "2026-03-08 10:30:00",
      "date_text": "2026年03月08日",
      "date_description": "2小时前",
      "summary": "文章摘要",
      "url": "https://mp.weixin.qq.com/s/...",
      "url_resolved": true
    }
  ]
}

JSON 字段说明:

  • title:文章标题
  • source:来源公众号名称
  • datetime:文章发布时间(中国时区,格式:YYYY-MM-DD HH:mm:ss)
  • date_text:日期描述(格式:YYYY年MM月DD日)
  • date_description:相对时间描述(如"2小时前"、"1天前"、"刚刚")
  • summary:文章摘要
  • url:文章链接(可能为真实微信链接或搜狗转链)
  • url_resolved:是否成功解析到真实微信链接(true/false)

输出说明

  • 所有链接使用 [查看详情](<链接>) 格式,可以正确处理特殊字符
  • 文章已按发布时间降序排序(最新在前)
  • 只显示最近60天内的文章,自动过滤旧内容
  • 时间优先从页面script标签中的时间戳解析,如果没有时间戳则尝试从文本提取

常见问题处理

  • 结果为空:尝试更换关键词、更少的特殊字符、或稍后重试
  • 解析真实 URL 失败:这是常态(反爬限制);可提示用户用浏览器打开中间链接

注意事项

  • 本工具仅用于学习和研究目的,请勿用于商业用途或大规模爬取。
  • 使用本工具时请遵守相关网站的使用条款和规定。
  • 过度使用可能导致 IP 被封禁,请谨慎使用。

FAQ

What does the wechat-article-search skill do?

微信公众号文章智能搜索工具。通过关键词检索获取文章列表,返回标题、摘要、发布时间、来源公众号等详细信息。

How do I install wechat-article-search?

Run npx skills add https://github.com/zsxink/skills-hub --skill wechat-article-search in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/wechat-article-search/ (personal) or .claude/skills/wechat-article-search/ (project).

Which AI agents can use wechat-article-search?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is wechat-article-search safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains wechat-article-search?

It is published by zsxink in zsxink/skills-hub. It has 161 recorded installs.

More from zsxink/skills-hub

View all →

a-stock-daily-report

zsxink/skills-hub

A股每日简报自动生成系统。抓取东方财富实时数据,生成包含大盘指数、热门板块、资金动向等完整信息的日报报告。

Docs & Writing779 installs

toutiao-news-trends

zsxink/skills-hub

Open the skill to read its SKILL.md instructions.

47 installs

Popular docs & writing skills

View category →

grill-with-docs

mattpocock/skills

A relentless interview to sharpen a plan or design, which also creates docs (ADR's and glossary) as we go.

Docs & Writing1.2M installs

lark-markdown

open.feishu.cn

飞书 Markdown:查看、创建、上传、编辑和比较飞书中的原生 Markdown 文件。当用户要操作飞书 Markdown 文件,或比较其远端版本及本地草稿时使用。纯本地 Markdown 文件操作不触发本 skill。不负责将 Markdown 导入为飞书在线文档,也不负责文件搜索、权限、评论、移动、删除等云空间管理操作。

Docs & Writing778.7K installs

writing-beats

mattpocock/skills

Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.

Docs & Writing490.7K installs

writing-shape

mattpocock/skills

Writing, exploit: shape raw material into an article, paragraph by paragraph.

Docs & Writing490.2K installs

writing-fragments

mattpocock/skills

Writing, explore: mine raw fragments, no structure yet.

Docs & Writing489.6K installs

writing-for-agents

mattpocock/skills

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

Docs & Writing479.3K installs