Skip to content

oldjie/wechat-article-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

📰 微信公众号文章爬取解析 skill

"让 AI 帮你快速读完一篇公众号文章,不漏重点。"

License: MIT Node.js Playwright

Claude Code OpenClaw AgentSkills


解析微信公众号文章,提取核心要点和干货。支持多种文章类型的智能总结。

📦 安装 · 🚀 使用 · 🔧 依赖


📦 安装

把下面这行发给你的 Agent:

帮我安装 wechat-article-parser skill:https://github.com/oldjie/wechat-article-parser

你的 Agent 会自动克隆仓库并安装依赖。

👇 手动安装(不想用 AI 装?)
# 克隆仓库
git clone https://github.com/oldjie/wechat-article-parser.git ~/.claude/skills/wechat-article-parser

# 安装依赖
cd ~/.claude/skills/wechat-article-parser
npm install playwright cheerio

# 安装浏览器(仅需一次)
npx playwright install chromium
平台 安装路径
OpenClaw ~/.openclaw/workspace/skills/wechat-article-parser
Claude Code ~/.claude/skills/wechat-article-parser
Codex ~/.codex/skills/wechat-article-parser

🚀 使用

在支持 Skill 的 Agent 中,直接发送微信公众号文章链接即可自动触发:

发送:https://mp.weixin.qq.com/s/xxxxx

或手动执行:

node scripts/fetch-wechat.js <公众号文章链接>

示例:

node scripts/fetch-wechat.js https://mp.weixin.qq.com/s/0d8x55t1t-SWQzG7jck7Pw

📤 输出说明

Skill 会根据文章类型智能调整输出方式:

文章类型 输出策略
干货/资讯类 简洁聚焦,提取核心要点
变化/事件类 理清背景→变化→原因→影响→争议
发布会/产品类 每个产品的背景、解决的问题、逻辑关系
科普/历史/故事类 保留关键人物、数据、年份、具体案例
推介/评测类 保留趣味,不过度精简

🔧 依赖

依赖 说明
Node.js 22+ 运行环境
playwright 浏览器自动化抓取
cheerio HTML 解析

📂 项目结构

wechat-article-parser/
├── SKILL.md              # Skill 入口(frontmatter 配置)
├── README.md             # 本文件
├── LICENSE              # MIT 协议
└── scripts/
    └── fetch-wechat.js   # 公众号文章抓取脚本

⭐ 相关话题

  • ai-skill
  • agent-skill

MIT License © oldjie

About

解析微信公众号文章,提取核心要点和干货。适用于 Claude Code / OpenClaw Skill。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors