← Back to Skills Marketplace
tomjamescn

Fetch Wx Article

by tomjamescn · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
359
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install fetch-wx-article
Description
获取微信公众号文章内容。使用 scrapling 抓取微信公众号文章并转换为 Markdown 格式。当用户分享微信公众号链接(mp.weixin.qq.com/s/xxx)并希望提取内容时使用。
README (SKILL.md)

Fetch WeChat Article - 获取微信公众号文章

从微信公众号文章链接提取内容的 skill。

快速开始

python3 scripts/fetch_wx_article.py https://mp.weixin.qq.com/s/xxx

安装依赖

使用前需要先安装依赖:

pip install "scrapling[ai]" html2text

使用说明

当以下情况时使用此 Skill

  1. 用户分享微信公众号文章链接(mp.weixin.qq.com/s/xxx 格式)
  2. 需要提取文章纯文本内容
  3. 需要获取标题、作者、正文等信息

输出格式

  • 返回 Markdown 格式的纯文本内容
  • 默认忽略链接和图片(可按需调整脚本)

脚本功能

scripts/fetch_wx_article.py 支持:

  • 命令行参数传入文章 URL
  • 错误处理和异常提示
  • 函数封装方便调用
  • 自动将 HTML 转换为 Markdown

技术说明

  • 使用 scrapling 处理复杂的微信公众号页面
  • 使用 html2text 转换 HTML 到 Markdown
  • 支持微信公众号文章链接:https://mp.weixin.qq.com/s/xxx

注意事项

  • 需要网络连接
  • 微信公众号文章通常包含复杂的 CSS/JS,scrapling 专门用于处理此类场景

从微信公众号提取内容,方便后续处理和归档。

Usage Guidance
This skill appears to do exactly what it claims: fetch a WeChat article URL and convert it to Markdown. Before installing: (1) review and confirm you trust the 'scrapling' package on PyPI (the SKILL.md suggests the '[ai]' extra which may add integrations requiring API keys); (2) install dependencies in a virtual environment; (3) be aware the script will make network requests to the provided URL and any third-party services that the scrapling library uses. If you are uncomfortable with potential downstream network calls or unknown package behavior, inspect 'scrapling' source or run the script in an isolated container. If you want to avoid any surprise AI integrations, install plain 'scrapling' (without [ai]) or consult the scrapling docs first.
Capability Analysis
Type: OpenClaw Skill Name: fetch-wx-article Version: 1.0.0 The skill is designed to fetch WeChat articles and convert them to Markdown format using the 'scrapling' and 'html2text' libraries. The Python script 'scripts/fetch_wx_article.py' implements this functionality directly by taking a URL as a command-line argument and processing the response content. There is no evidence of malicious intent, data exfiltration, or prompt injection in either the code or the documentation.
Capability Assessment
Purpose & Capability
Name/description match the included script and instructions: the script fetches a mp.weixin.qq.com article and converts HTML to Markdown using html2text and scrapling. Required capabilities (network access, HTML->Markdown) are proportional to the purpose.
Instruction Scope
SKILL.md instructs installing scrapling and html2text and running the bundled script with a WeChat URL. The script only fetches the supplied URL and converts page.html_content to Markdown; it does not read other files, environment variables, or system paths.
Install Mechanism
There is no formal install spec in registry; SKILL.md recommends 'pip install "scrapling[ai]" html2text'. Using pip is expected, but pip packages are fetched from PyPI at runtime — verify the 'scrapling' package and its '[ai]' extras before installing. The skill does not bundle or download arbitrary remote code itself.
Credentials
The skill declares no required env vars and the script does not reference any. However the SKILL.md recommends installing the 'scrapling[ai]' extra which may optionally integrate with external AI services (and could require API keys) depending on that package's behavior; if you plan to install that extra, review whether it requires additional credentials.
Persistence & Privilege
Skill is instruction-only (plus a small script) and does not request persistent presence or elevated privileges. always is false and the skill does not modify other skills or system settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install fetch-wx-article
  3. After installation, invoke the skill by name or use /fetch-wx-article
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of fetch-wx-article skill. - Extracts WeChat public article content from mp.weixin.qq.com/s/xxx links. - Outputs clean Markdown format (title, author, body; ignores links/images by default). - Uses scrapling and html2text for robust extraction and HTML-to-Markdown conversion. - Command-line script with error handling and easy integration.
Metadata
Slug fetch-wx-article
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Fetch Wx Article?

获取微信公众号文章内容。使用 scrapling 抓取微信公众号文章并转换为 Markdown 格式。当用户分享微信公众号链接(mp.weixin.qq.com/s/xxx)并希望提取内容时使用。 It is an AI Agent Skill for Claude Code / OpenClaw, with 359 downloads so far.

How do I install Fetch Wx Article?

Run "/install fetch-wx-article" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Fetch Wx Article free?

Yes, Fetch Wx Article is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Fetch Wx Article support?

Fetch Wx Article is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Fetch Wx Article?

It is built and maintained by tomjamescn (@tomjamescn); the current version is v1.0.0.

💬 Comments