If you're building anything that needs to pull content from WeChat Official Accounts, this handles the messy parts. It parses mp.weixin.qq.com URLs and extracts everything from article metadata (title, author, publish time) to account details and HTML content. The error handling is surprisingly thorough with specific codes for rate limits, deleted posts, copyright takedowns, and migrated accounts. You can configure what gets extracted with options like shouldFollowTransferLink for account migrations or shouldExtractRepostMeta for shared content. It even handles Sogou WeChat search result pages. The response format is clean and predictable, which matters when WeChat's page structure changes constantly. Worth noting it requires cheerio and a few other packages for the HTML parsing heavy lifting.

skills.sh installs
3.9K
GitHub stars
141
last updated
Aug 21, 2026

Install

$ npx -y skills add freestylefly/wechat-article-extractor-skill --skill wechat-article-extractor --agent claude-code

Installs into .claude/skills of the current project.

Files

WeChat Article Extractor

Extract metadata and content from WeChat Official Account (微信公众号) articles.

Capabilities

  • Parse WeChat article URLs (mp.weixin.qq.com)
  • Extract article metadata: title, author, description, publish time
  • Extract account info: name, avatar, alias, description
  • Get article content (HTML)
  • Get cover image URL
  • Support multiple article types: post, video, image, voice, text, repost
  • Handle various error cases: deleted content, expired links, access limits

Usage

Basic Extraction from URL

const { extract } = require('./scripts/extract.js');

const result = await extract('https://mp.weixin.qq.com/s?__biz=...');
// Returns: { done: true, code: 0, data: {...} }

Extraction from HTML

const html = await fetch(url).then(r => r.text());
const result = await extract(html, { url: sourceUrl });

Options

Sponsors

Details

Repository
github.com/freestylefly/wechat-article-extractor-skill
Category
Release Management
1deanpeters avatarroadmap-planningdeanpeters/product-manager-skillsPlan a strategic roadmap across prioritization, epic definition, stakeholder alignment, and sequencing. Use when turning strategy into a release plan that teams3.9Kskills.sh installs
2dpearson2699 avatarnatural-languagedpearson2699/swift-ios-skillsTokenize, tag, and analyze natural language text using Apple's NaturalLanguage framework and translate between languages with the Translation framework. Use whe3.8Kskills.sh installs
3axiomhq avatarquery-metricsaxiomhq/skillsRuns metrics queries against Axiom MetricsDB via scripts. Discovers available metrics, tags, and tag values. Use when asked to query metrics, explore metric dat3.8Kskills.sh installs
4dpearson2699 avatarcore-nfcdpearson2699/swift-ios-skillsRead and write NFC tags using CoreNFC. Use when scanning NDEF tags, reading ISO7816/ISO15693/FeliCa/MIFARE tags, writing NDEF messages, handling NFC session lif3.8Kskills.sh installs
5giuseppe-trisciuoglio avataraws-lambda-python-integrationgiuseppe-trisciuoglio/developer-kitProvides AWS Lambda integration patterns for Python with cold start optimization. Use when deploying Python functions to AWS Lambda, choosing between AWS Chalic3.8Kskills.sh installs
6superwall avatarsuperwall-editorsuperwall/skillsBuild and edit live Superwall paywalls from the CLI. Attach to a running browser editor session using a pairing code, list the tools the browser exposes right n3.7Kskills.sh installs