Skip to main content
skill CX Codex

wechat-article-extractor — Claude Code skill: parse WeChat articles

Pulls title, author, publish time and HTML body out of WeChat Official Account links. Useful when you need that content as structured data.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add freestylefly/wechat-article-extractor-skill --skill wechat-article-extractor -a claude-code
Open on GitHub

What wechat-article-extractor does

The skill takes a mp.weixin.qq.com URL or an already fetched HTML page and returns one object with account and article fields. You get the account name, alias, avatar, description, plus the article title, summary, author, publish time, cover image and HTML content. Article type is detected from the page: post, video, image, voice, text or repost.

Under the hood it calls scripts/extract.js through require, and the call is async. Options control what comes back: shouldReturnContent (default true), shouldReturnRawMeta, shouldFollowTransferLink, shouldExtractMpLinks, shouldExtractTags, shouldExtractRepostMeta. It needs the npm packages cheerio, dayjs, request-promise, qs and lodash.unescape.

Failures come back as numbered codes: 1004 for rate limiting, 2002 for an expired link, 2005 when the author deleted the piece, 2006 when it is blocked, 2012 when the account is blocked. If you batch requests, 1004 is what you will hit, so keep the pace slow. Some fields can be null depending on the article type and page structure.

What it helps with

  • pull title and author from a WeChat article URL
  • turn an article into a structured object for later processing
  • grab the HTML body and cover image
  • detect whether the item is a post, video, image or repost
  • parse links from Sogou WeChat search results

Example prompts for the agent

  • parse this mp.weixin.qq.com link and show me the title, author and publish time
  • extract the HTML content and cover image from this WeChat article
  • get the account and article metadata from this URL

How to install wechat-article-extractor

1Skills CLI (Vercel)

npx skills add freestylefly/wechat-article-extractor-skill --skill wechat-article-extractor -a claude-code

2Manually: put the files in place

~/.claude/skills/wechat-article-extractor/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/wechat-article-extractor/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about wechat-article-extractor

How do I install wechat-article-extractor in Claude?

Run npx skills add freestylefly/wechat-article-extractor-skill --skill wechat-article-extractor -a claude-code. The skill then lands in ~/.claude/skills/wechat-article-extractor/SKILL.md.

What does wechat-article-extractor do?

It parses WeChat Official Account articles and returns the title, author, publish time, cover image and HTML content, along with account details.

What dependencies does the skill need?

The npm packages cheerio, dayjs, request-promise, qs and lodash.unescape.

Similar skills

All skills for Browser and scraping →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor