ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified data analysis Safety 4/5

mp-weixin

利用 Python 从微信公众号文章中提取元数据与正文内容。适用于用户需要解析微信文章链接(mp.weixin.qq.com)、提取文章信息(标题、作者、正文、发布时间、封面图),或将微信文章转换为结构化数据的情景。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/bozoyan/mp-weixin
Or

What This Skill Does

The mp-weixin skill is a specialized Python-based tool designed for OpenClaw to extract structured data from WeChat public account articles (mp.weixin.qq.com). It allows users to parse URLs and retrieve comprehensive metadata, including the article title, author, full HTML content, cover image, and publishing timestamp. Additionally, it provides specific URL parameters (mid, idx, sn, biz) and detailed account information, making it an essential utility for content curation, digital archiving, and monitoring WeChat-based media channels.

Installation

To integrate this skill into your OpenClaw environment, execute the following command in your terminal:

clawhub install openclaw/skills/skills/bozoyan/mp-weixin

Ensure your local environment has the necessary dependencies installed: pip install beautifulsoup4 requests lxml. For users in regions with restricted access to PyPI, you may utilize the Tsinghua mirror as outlined in the installation documentation.

Use Cases

  • Content Curation & Archiving: Automatically fetch and store high-quality articles from specific WeChat accounts into your personal knowledge base or database.
  • Market Intelligence: Monitor updates from competitors or industry leaders by automating the retrieval of new article metadata.
  • Data Analysis: Convert raw HTML WeChat articles into standardized JSON formats for sentiment analysis or keyword extraction.
  • Content Migration: Simplify the process of moving content from WeChat to other platforms (like a personal blog or CMS) by programmatically extracting structured content.

Example Prompts

  1. "Extract the full content and metadata from this WeChat article URL: https://mp.weixin.qq.com/s/xN1H5s66ruXY9s8aOd4Rcg and save it as a JSON file."
  2. "Get the title, author, and publication time for the following list of WeChat articles and print them to the console."
  3. "Monitor this公众号 and download the latest article's content, specifically focusing on the main body text."

Tips & Limitations

  • Handling Limitations: The skill is not designed for scraping content behind paywalls or bypassing complex anti-bot systems such as CAPTCHAs.
  • Rate Limiting: To prevent being blocked by WeChat’s servers, always include a time.sleep() interval when performing bulk extractions.
  • Best Practices: Use the returned msg_content to strip HTML tags if you only require the text body, or utilize the beautifulsoup4 library for more granular content manipulation.

Metadata

Author@bozoyan
Stars4190
Views1
Updated2026-04-18
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-bozoyan-mp-weixin": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#wechat#scraper#python#data-extraction#content-management
Safety Score: 4/5

Flags: network-access, file-read, file-write

Related Skills

bozo-wechat-publisher

一键发布 Markdown 文章到微信公众号草稿箱。当用户提到发布到微信、公众号、推文、草稿箱、上传文章时触发。支持 wenyan-cli 完整排版和 curl 备用方案,兼容所有 Node.js 版本。

bozoyan 4190

aigc-images

基于 BizyAir 异步 API 的批量多密钥图片生成助手。支持从本地文件或远程 URL 读取多个 API 密钥,批量执行图片生成任务,每个密钥对应一个任务。当用户需要批量生成 BizyAir 图片、多密钥并发执行、分镜场景图生成时必须使用此技能。

bozoyan 4190

story-bozo

网文章节分镜转化技能。将小说章节内容或分镜内容转化为富有画面感、节奏感和悬念感的立体分镜。 使用场景: - 用户说"帮我优化这章的分镜"、"把这个章节改成分镜脚本" - 用户说"这个情节太平淡了,帮我增加爽感" - 用户说"根据这些分镜内容写成立体分镜" - 用户提供小说章节,要求增强画面感和节奏感 - 用户说"欲扬先抑"、"打脸"、"装逼"等爽点设计 - 用户说"这个段落太直白了,帮我改得更有电影感" - 用户提供章节大纲,要求转化为分镜脚本

bozoyan 4190

bizyair-i2i

BizyAir 图生图(Image-to-Image)助手。将本地图片上传后作为参考,使用 AI 生成新的图片。当用户说"根据这张图片生成"、"图生图"、"参考图片生成"、"图片转图片"等时触发。

bozoyan 4190

bizyair-upload

BizyAir 文件上传助手。当用户需要将本地图片、音频、视频等资源上传到 BizyAir 服务器时使用此技能。支持快速上传并获取可访问的 URL。触发场景:用户提到"上传到 BizyAir"、"BizyAir 上传"、"上传图片到 BizyAir",或者需要获取 BizyAir input resource URL 时。

bozoyan 4190