
Wechat Article Extractor
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-codeInstalls 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