@Pluvio9yte: Claude Code can't read WeChat public account articles. I spent ten minutes solving it and turned it into an open-source skill. Yesterday I asked Claude Code to review a draft of a public account article. I dropped the link in, and WebFetch directly returned "Environment exception, please complete verification." Switched to Jina Re...

X AI KOLs Timeline Tools

Summary

The author solved the problem of Claude Code being unable to read WeChat public account articles by faking User-Agent and Referer to bypass WeChat verification, and using Python standard library to extract the title, author, and body text. He packaged this functionality into an open-source skill (rn-wechat-extract), supporting one-command extraction of full text, usable in Agent workflows.

Claude Code couldn't read WeChat public account articles — I fixed it in ten minutes and turned it into an open-source skill. Yesterday I asked Claude Code to help me review a draft from a WeChat public account article. I threw in the link, and WebFetch returned "Environment anomaly, please complete verification." I tried Jina Reader as a workaround — same block. Both tools tripped on the same thing: WeChat detects the request isn't coming from the WeChat app and directly serves a CAPTCHA page — it won't even give you the HTML. I looked into WeChat's blocking logic. The first layer is simple — it checks whether the `User-Agent` header contains the keyword `MicroMessenger`. Normal browser UAs don't include that keyword, so WeChat's server treats it as an external visit and returns a prompt page telling you to open it in WeChat. The fix was straightforward: swap the `User-Agent` to WeChat iOS WebView format, add `MicroMessenger/8.0.49`, and append `Referer: https://mp.weixin.qq.com`. With curl it worked instantly — the full 3MB HTML came through. After getting the HTML, three things needed to be done: Extract the title from the JavaScript variable `msg_title`, the author from a `<meta>` tag, and the body from the `<div id="js_content">`. There's a gotcha with WeChat's HTML — `msg_title` sometimes uses double quotes, sometimes single quotes. My first regex only matched double quotes, so the title came back empty. After adding multi-pattern matching, everything extracted correctly. I ran the script afterwards on that specific article ("井底之硅") and got the title, author, publish date, and the full 7025-character body — all in clean Markdown format. The entire script uses only Python standard library — `urllib` for requests, `re` for HTML parsing, `json` for output. Zero dependencies, no API key, no Playwright or Selenium needed. It runs on any machine with Python. After finishing, I packaged it into two versions. One is the project-internal `ra-公众号提取`, tied to my content creation system's storage rules. Extracted source files automatically go into the `.internal/` privacy zone, and downstream workflows like rewriting, topic selection, and video production can call it directly. The other is the portable `rn-wechat-extract`, placed in the `rnskill` open-source repo. This version is not bound to any project structure — the output path is set via the `--output-dir` argument. It can be installed in any Claude Code / Codex project. Installation: ```bash npx -y skills add Pluviobyte/rnskill --skill rn-wechat-extract ``` Or manually copy the `skills/rn-wechat-extract/` directory into your project's `.claude/skills/` folder. Usage is one command: ```bash python3 fetch_wechat.py "https://mp.weixin.qq.com/s/xxxx" --output-dir ./output ``` It outputs a JSON telling you the title, author, word count, and file path. A few edge cases to know: hitting the same IP with too many requests in a short time will trigger a slider CAPTCHA — just wait a few minutes. Articles requiring login or payment can't be fetched. Images are lazy-loaded via `data-src`, so the script only extracts text, not images. This skill solves a very specific problem: when an Agent workflow encounters a WeChat public account link, the user no longer has to manually copy and paste the article content. One command, full extraction, and downstream skills can pick it up directly.
Original Article
View Cached Full Text

Cached at: 07/16/26, 06:06 AM

Claude Code can’t read WeChat public account articles — so I spent ten minutes fixing it and turned it into an open-source skill.

Yesterday I asked Claude Code to review a draft from a WeChat public account article. I dropped the link into it, and WebFetch directly returned “Environment anomaly, please complete verification.” I tried routing through Jina Reader instead, and got blocked the same way.

Both tools hit the same wall: WeChat detects the request didn’t come from the WeChat app and directly serves a CAPTCHA page — it won’t even give you the HTML.

I looked into WeChat’s blocking logic. The first layer of checking is simple — it looks at the User-Agent in the HTTP request headers for the keyword MicroMessenger.
Normal browser UAs don’t contain that word, so the WeChat server determines you’re an external visitor and returns a prompt page asking you to open it in WeChat.

The fix was straightforward: replace the User-Agent with the WeChat iOS WebView format, include MicroMessenger/8.0.49, and add a Referer: https://mp.weixin.qq.com. Using curl with those headers, it went right through — I got the full 3MB HTML.

Once I had the HTML, I needed to do three things:
Extract the title from the JavaScript variable msg_title, get the author name from the <meta> tag, and grab the body text from the <div id="js_content">.

There’s a gotcha in WeChat’s HTML — msg_title is sometimes wrapped in double quotes and sometimes in single quotes. My first regex only matched double quotes, so the title came back empty. After adding multi-pattern matching, everything extracted correctly.

After writing the script, I ran it against that “井底之硅” article — title, author, publish time, and 7025 characters of body text all came back in clean Markdown format.

The whole script uses only the Python standard library — urllib for requests, re for HTML parsing, and json for output. Zero dependencies, no API key needed, no Playwright or Selenium required — it runs on any machine with Python.

After finishing, I packaged it into two versions.

One is ra-公众号提取 for internal projects — it’s tied to my content creation system’s storage rules. Extracted source files are automatically saved into the .internal/ privacy zone, and downstream workflows for rewriting, topic selection, and video production can directly use them.

The other is the portable version rn-wechat-extract, placed in the rnskill open-source repository. This version isn’t bound to any project structure — the output path is controlled by the --output-dir parameter. It can be installed into any Claude Code / Codex project.

Installation:

npx -y skills add Pluviobyte/rnskill --skill rn-wechat-extract

Or manually copy the skills/rn-wechat-extract/ directory into your project’s .claude/skills/ folder.

Usage is one command:

python3 fetch_wechat.py "https://mp.weixin.qq.com/s/xxxx" --output-dir ./output

It outputs a JSON with the title, author, word count, and file path.

A few edge cases to know:

  • If you make many requests from the same IP in a short period, you’ll trigger a slider CAPTCHA — just wait a few minutes and try again.
  • Articles that require login or payment can’t be fetched.
  • Images use lazy-loaded data-src — the script extracts text only, no image downloading.

This skill solves a very specific problem: when an Agent workflow encounters a WeChat public account link, the user no longer has to manually copy and paste the article content. One command, full-text extraction, ready for downstream skills.

雪踏乌云 (@Pluvio9yte):
Open-source WeChat article parsing skill. Claude Code or Codex cannot directly access WeChat public account links.
So I asked Grok to figure out the principle, and made this skill that lets Agents download and read the content and images of WeChat articles.

Address

Similar Articles

@zjp1997720: [Reverse-engineered WorkBuddy, open-sourced a skill for searching WeChat articles] A while ago, when I dissected WorkBuddy's built-in Deep Research feature, I found that during execution it came with a skill for searching WeChat public account articles, called WeChat Article Se…

X AI KOLs Timeline

The author reverse-engineered WorkBuddy's Deep Research feature, discovered its built-in skill for searching WeChat public account articles (WeChat Article Search), and open-sourced it. This tool implements WeChat public account article search by calling the Sogou search API, returns structured JSON results, requires no API key, and supports one-click installation via npx.

@iluciddreaming: AI Agent can now read your WeChat. Two tools, 10 minutes to install: 1. Agent Reach: search official accounts and bypass anti-scraping to read full articles 2. wx-cli: read all WeChat messages locally, no internet required, no account ban. What can you do after installation? Auto-summarize group messages, collect official account materials, AI helps you keep producing content…

X AI KOLs Timeline

Introducing two tools (Agent Reach and wx-cli) that allow AI Agent to read WeChat messages and official account content, enabling automatic group message summarization, material collection, and more. Installation takes only 10 minutes.

@aehyok: Wow, this is insane! Tencent's own ima knowledge base lets AI easily read the WeChat public account articles from our WeChat favorites, and it supports batch processing. Anyone else like me who often browses public account articles, thinks they're good, and clicks save? But when you need to use them, you have to search through favorites, open them, copy the link — super inconvenient...

X AI KOLs Timeline

Tencent's ima knowledge base can batch-read public account articles from WeChat favorites and supports deep integration with Agent products like WorkBuddy, Claude Code, and Codex, making AI processing convenient.

@GitHub_Daily: Found another handy Skill — one sentence turns any content into a podcast, PPT, mind map, and more. It supports over 15 content sources, including WeChat official accounts, podcasts, YouTube videos, PDFs, ebooks, etc. It can also automatically detect and attempt to bypass paywalls, covering 300+ sites like The New York Times, The Wall Street Journal, etc.

X AI KOLs Timeline

An open-source Claude Code Skill that converts over 15 content sources (including WeChat articles, YouTube, and paywalled news) into podcasts, PPTs, mind maps, and more in one click, with automatic paywall bypass attempts.