Wechat Article Camofox logo

Wechat Article Camofox

Community
dracohu2025-cloud
wechat-article-camofox

使用本机部署的 camofox-browser 稳定抓取微信公众号文章链接内容,优先读取浏览器 accessibility snapshot,并对公众号页噪音做专用清洗,输出 Markdown 或 JSON。

Overview

Publisherdracohu2025-cloud
Repositorydraco-skills-collection
Skill namewechat-article-camofox
Stars
228
Forks
37
Bundled files
10
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 10 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by dracohu2025-cloud on GitHub. Read the source before you install it.

Installation

Install the Wechat Article Camofox AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dracohu2025-cloud/draco-skills-collection/tree/main/Ark%20Agent%20Plan%20Version/wechat-article-camofox
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.

Use it in TypingMind

Enable Wechat Article Camofox in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Wechat Article Camofox on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Wechat Article Camofox is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

WeChat Article Extraction via Camofox

当你要稳定获取 微信公众号文章链接(mp.weixin.qq.com/s/...)的正文内容时,使用这个 skill,喵。

它依赖 camofox-browser 作为浏览器采集层,读取页面 accessibility snapshot,再做公众号页面专用清洗,得到更干净的正文输出。

当前版本已经升级成 方案 B:自动安装型:首次运行会先检查本机 camofox-browser 是否可用;如果还没装,会尝试自动 clone 仓库并执行 npm install,然后再拉起服务。也就是说,用户不必再手动预装 CamouFox,只需要本机已有 git 和 Node.js 18+ / npm,喵。

适用场景

  • 抓取微信公众号文章正文
  • 输出 Markdown 或 JSON
  • 普通静态抓取噪音过多,或浏览器兜底更稳时
  • 后续想把公众号抓取能力接到 Hermes 或自己的脚本链路里

这版 skill 提供什么

  • scripts/run.py:统一入口(推荐公开仓库用户直接使用)
  • scripts/fetch_wechat_article.py:主提取脚本
  • scripts/publish_wechat_article_to_feishu.py:抓取并发布到飞书原生文档(含正文图片)
  • templates/article_urls.example.txt:示例输入
  • 若装进 Hermes 本机环境,可继续提供命令入口:wechat-article-fetch
  • 若装进 Hermes 本机环境,可继续提供命令入口:wechat-article-to-feishu
  • 若本机已存在 camofox-browser-start / status / stop 管理脚本,会优先复用这些入口;若没有,Python 脚本也能直接完成自动安装与拉起
  • 首次运行或服务未就绪时,脚本会在 stderr 打印阶段性进度:检查健康状态、安装依赖、clone 仓库、执行 npm install、启动服务、等待健康检查通过
  • 依赖的 camofox-browser 服务管理脚本(若本机已配置):
    • camofox-browser-start
    • camofox-browser-status
    • camofox-browser-stop

这次实测后又补了两条关键经验:

  • 写飞书原生文档并做回读校验 是这条 workflow 的基本要求,不是可选项
  • 图片要按原文顺序插回正文,而不是统一堆到文末

前提条件

  1. 本机已安装 git
  2. 本机已安装 Node.js 18+ 与 npm
  3. 目标链接为可公开访问的公众号文章页

可选预检查:

bash
node --version
npm --version
git --version

camofox-browser 本身不再要求手动预装。首次运行 wechat-article-fetch / wechat-article-to-feishu 时,脚本会自动检查;若缺失,会自动 clone https://github.com/jo-inc/camofox-browser.git 并执行 npm install,然后再尝试拉起本地服务。

最常用用法

0)抓取并直接发布到飞书原生文档

bash
python3 scripts/run.py publish-feishu "https://mp.weixin.qq.com/s/xxxxxxxxxxxxxxxx"

这个 workflow 会执行:

  • 抓取公众号文章
  • 清洗正文与标题
  • 自动提取正文图片并按原文顺序写进飞书原生文档正文
  • 回读飞书文档做校验

如果你的任务目标里包含“放到飞书文档里”,这是优先入口。

1)抓取为 Markdown

bash
python3 scripts/run.py fetch "https://mp.weixin.qq.com/s/xxxxxxxxxxxxxxxx"

如果本机还没有 camofox-browser,它会先自动安装;如果服务未启动,它会自动拉起服务,再继续抓取。首次运行过程中会在 stderr 持续打印阶段性进度,例如:检查健康状态、clone 仓库、执行 npm install、启动服务、等待健康检查通过。

2)输出 JSON

bash
python3 scripts/run.py fetch "https://mp.weixin.qq.com/s/xxxxxxxxxxxxxxxx" --format json

3)保存到文件

bash
python3 scripts/run.py fetch "https://mp.weixin.qq.com/s/xxxxxxxxxxxxxxxx" --save /tmp/article.md

4)附带图片列表

bash
python3 scripts/run.py fetch "https://mp.weixin.qq.com/s/xxxxxxxxxxxxxxxx" --format json --include-images

Python 脚本直接调用

bash
python3 scripts/fetch_wechat_article.py \
  "https://mp.weixin.qq.com/s/xxxxxxxxxxxxxxxx" \
  --format markdown

输出说明

Markdown

默认输出:

  • 标题
  • 作者 / 发布时间(若能识别)
  • 正文清洗结果

JSON

输出字段:

  • url
  • title
  • author
  • published_at
  • content_markdown
  • images(可选)
  • source(固定为 camofox_snapshot)

提取策略

  1. 先检查本机 camofox-browser 是否健康
  2. 若未安装,则自动 clone camofox-browser 仓库并执行 npm install
  3. 若服务未运行,则自动拉起本地服务
  4. 新建隔离 tab 打开目标公众号链接
  5. 读取 snapshot(必要时翻页 offset)
  6. 解析标题 / 作者 / 时间 / 正文
  7. 过滤公众号常见噪音:
    • 视频控件
    • 点赞 / 留言 / 关注 / 分享区
    • 扫码提示
    • 页脚互动区
    • 小程序 / 二维码 / 继续访问等提示
  8. 关闭临时 tab

已知边界

  • 这是“公众号正文提取器”,不是通用网页抽取器
  • 个别文章若页面结构特殊,清洗规则可能需要补充
  • 当前已支持把正文图片按页面 snapshot 顺序插回正文,并在发布飞书文档时渲染成原生图片块
  • 当前也已修复一批常见的块级恢复问题:嵌套 listitem 的多余圆点、list item 内联 code 被拆行、blockquote 段落丢失、以及列表和后续正文之间的错误折行
  • 解析 snapshot 时,遇到 - list: / - listitem: / - paragraph: / - blockquote: 这类容器节点,应该按子树聚合成同一个块;不要把子节点里的 - text:、- code:、- strong: 当成独立段落逐行吐出,否则很容易产生假圆点、额外折行和断裂的 inline code
  • 序列化 Markdown 时,列表块结束后如果下一块不是列表,必须主动补空行;否则飞书/Markdown 渲染会把后续正文错误吞进上一个 list item
  • 但“逐块原样恢复”仍是近似重建,不保证与手机端公众号富文本 100% 像素级一致;复杂卡片、特殊组件、极细碎图文混排仍可能需要继续补规则
  • 自动安装模式仍依赖本机已有 git 与 Node.js 18+ / npm;如果这些底层依赖缺失,脚本会停止并给出明确提示
  • 当前实测下,若飞书授权缺少 space:document:delete,则无法真正删除旧文档;稳妥替代方案是用 docs +update --mode overwrite 将旧文档覆盖为“已废弃,请看新版”提示

何时优先使用这个 skill

当用户提到:

  • 微信公众号文章
  • 公众号链接抓取
  • mp.weixin.qq.com
  • 提取公众号正文
  • 微信文章转 Markdown / JSON

一句话总结

这套 skill 用 camofox-browser 解决“稳稳打开页面”的问题,再用公众号专用清洗解决“拿到干净正文”的问题。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Wechat Article Camofox AI skill do?

使用本机部署的 camofox-browser 稳定抓取微信公众号文章链接内容,优先读取浏览器 accessibility snapshot,并对公众号页噪音做专用清洗,输出 Markdown 或 JSON。

Why use Wechat Article Camofox on TypingMind?

Because you install it once and use it with any model. Wechat Article Camofox is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Wechat Article Camofox in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dracohu2025-cloud/draco-skills-collection/tree/main/Ark%20Agent%20Plan%20Version/wechat-article-camofox. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Wechat Article Camofox?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Wechat Article Camofox?

As many as you like. As long as a model supports skills, you can use Wechat Article Camofox with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Wechat Article Camofox AI skill free?

Yes. It is published on GitHub by dracohu2025-cloud under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇