← 返回 Skills 市场
joannaxing

WeChat Article Extract

作者 JoannaXing · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
40
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install wechat-article-extract
功能描述
Extract public WeChat Official Account articles from mp.weixin.qq.com links or saved HTML into clean Markdown or structured JSON, including title, account na...
使用说明 (SKILL.md)

WeChat Article Extract

Use this skill to extract a public WeChat Official Account article into portable Markdown or JSON. It is intentionally local and generic: it does not require the user's Feishu, knowledge-base profile, database, or API keys.

Quick Start

Run the bundled script from the skill directory:

python3 scripts/extract_wechat_article.py "https://mp.weixin.qq.com/s/..." --format markdown --output article.md
python3 scripts/extract_wechat_article.py "https://mp.weixin.qq.com/s/..." --format json --output article.json

For an HTML file already saved from a browser:

python3 scripts/extract_wechat_article.py --html-file article.html --source-url "https://mp.weixin.qq.com/s/..." --format markdown

Workflow

  1. Confirm the input is a public https://mp.weixin.qq.com/s/... article URL or a saved HTML file. Private drafts, logged-in backend pages, and non-WeChat URLs are out of scope.
  2. Extract with scripts/extract_wechat_article.py.
  3. If network fetching fails because WeChat blocks the request, ask the user to save the article HTML from a browser and rerun with --html-file.
  4. Use Markdown for human-readable archives and JSON for downstream import pipelines.
  5. Keep copyright boundaries: summarize or transform extracted content when sharing externally; do not republish full articles unless the user has rights to do so.

Outputs

Markdown output contains:

  • article title, account name, publish time, source URL, and image count
  • full text with blank-line paragraph separation
  • tables converted to Markdown tables when possible
  • inline image placeholders like [[WECHAT_IMAGE_1]]
  • image URL list at the end

JSON output contains:

  • articleId
  • title
  • author
  • publishTime
  • sourceUrl
  • content
  • contentWithImageMarkers
  • imageEntries
  • imageUrls
  • imageCount
  • coverImageUrl

Notes

  • The script uses only the Python standard library.
  • It preserves image positions with markers but does not download images by default.
  • Add --download-images \x3Cdir> when the user explicitly wants local image files.
  • WeChat article pages change over time; if live extraction fails, saved HTML is the most reliable fallback.
安全使用建议
Install if you want an agent to fetch or parse public WeChat articles and save extracted output. Review the source URL and output path before running, and use image downloading only for articles and destinations you trust.
能力评估
Purpose & Capability
The artifacts consistently describe extracting public mp.weixin.qq.com articles or user-supplied saved HTML into Markdown or JSON, with optional image downloading only when requested.
Instruction Scope
The trigger text uses several generic verbs, but it is still tied to WeChat/Weixin public article content and the workflow explicitly excludes private drafts, logged-in backend pages, and non-WeChat URLs.
Install Mechanism
Installation consists of a skill document, a small OpenAI agent YAML, tests, and a bundled Python standard-library script; there are no package installs, startup hooks, or hidden setup steps.
Credentials
Network access to public WeChat article URLs, reading a user-provided HTML file, and writing requested output files are proportionate to the stated extraction/archive workflow.
Persistence & Privilege
No background process, credential access, privilege escalation, profile/session use, or persistent agent behavior was found; output files and optional downloaded images are user-directed artifacts.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install wechat-article-extract
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /wechat-article-extract 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: extract public WeChat Official Account articles to Markdown or JSON without Feishu or knowledge-base dependencies.
元数据
Slug wechat-article-extract
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

WeChat Article Extract 是什么?

Extract public WeChat Official Account articles from mp.weixin.qq.com links or saved HTML into clean Markdown or structured JSON, including title, account na... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 40 次。

如何安装 WeChat Article Extract?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install wechat-article-extract」即可一键安装,无需额外配置。

WeChat Article Extract 是免费的吗?

是的,WeChat Article Extract 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

WeChat Article Extract 支持哪些平台?

WeChat Article Extract 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 WeChat Article Extract?

由 JoannaXing(@joannaxing)开发并维护,当前版本 v1.0.0。

💬 留言讨论