Fetch WeChat Article for Openclaw

An automated browser utility that extracts public WeChat Official Account articles and converts them into Markdown and clean HTML without requiring account credentials.

lucky-dreamer
v1.0.0
Jun 23, 2026
0
343
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install fetch-wechat-article

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install fetch-wechat-article using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Fetch WeChat Article?

The Fetch WeChat Article skill is a sophisticated browser automation utility designed to circumvent WeChat's strict anti-scraping defenses. Standard headless scrapers are frequently blocked by WeChat's security measures, showing an abnormal environment error. This tool bypasses these limitations by orchestrating real browser engines (Microsoft Edge or Firefox) in a headed rendering mode. This project is a crucial component of the Openclaw Skills directory, empowering developers to dynamically ingest and archive high-quality Chinese content.

By injecting tailored evasion scripts that overwrite standard automation flags like navigator.webdriver, the utility loads public WeChat URLs, waits for visual elements to render, and safely extracts cleanly formatted text. The tool operates completely independently of user login status, making it highly reliable for extracting any public article's title, author, publish date, and body text without authentication friction.

Fetch WeChat Article Use Cases

  • Archiving public WeChat articles for long-term personal knowledge management or offline databases.
  • Piping raw WeChat article text into RAG systems or LLM vector stores to extract Chinese market insights.
  • Bypassing strict anti-scraping security pages that block standard headless fetchers on the WeChat domain.
  • Converting cluttered social media posts into cleanly formatted, ad-free Markdown and HTML files.

How Fetch WeChat Article Works

  1. URL Input: The utility receives a WeChat Official Account URL (either a normalized short URL or a long URL containing tracking parameters).
  2. Browser Launch: Based on the operating system, it spins up a real headed browser (Microsoft Edge on Windows, Firefox on Linux).
  3. Anti-Scraping Bypass: It injects custom bypass scripts at the browser level to mask automation signatures (specifically neutralizing navigator.webdriver).
  4. Security Monitoring: The script continuously inspects the loaded page every 2 seconds for up to 30 seconds to confirm bypass of the security screen.
  5. Content Extraction: Once loaded, it extracts the title, author metadata, publish date, and core text content.
  6. Export & Storage: It outputs clean, structured Markdown and styled HTML files to the specified output folder, then closes the browser safely.

Fetch WeChat Article Setup

To deploy this module, ensure you have Python installed alongside the Playwright automation framework. Standard Openclaw Skills are designed to leverage these environments easily.

Install the Playwright library using pip:

pip install playwright

Install the required system browser binaries for your operating system:

For Windows (Microsoft Edge):

playwright install msedge

For Linux (Firefox / Chromium):

playwright install firefox
playwright install chromium

Execute the fetching script by passing the targeted WeChat URL and an output directory:

python path/to/scripts/fetch_wechat_article.py "https://mp.weixin.qq.com/s/example_id" ./output

Fetch WeChat Article Data Schema & Taxonomy

Upon successful extraction, the utility creates two separate files named with the template wechat_Title_Timestamp to categorize article structures accurately:

Output File Format Naming Convention Output Schema Details
Markdown (.md) wechat_[title]_[timestamp].md Contains structured frontmatter metadata (title, author, timestamp) followed by clean, formatted content text.
HTML (.html) wechat_[title]_[timestamp].html Contains clean, readable offline HTML layouts of the article content for visual viewing.

Extracted Document Schema:

  • Title: Document heading extracted from the article's primary meta tag.
  • Author: Publisher name parsed from the metadata wrapper.
  • Content Body: Sanitized paragraphs and section titles formatted cleanly into Markdown elements.

Fetch WeChat Article Advanced Features

  • OS-Specific Autodetection: Automatically shifts browser engines between Microsoft Edge (on Windows) and Firefox (on Linux) to ensure maximum compatibility.
  • Webdriver Spoofing: Injecting customized telemetry bypasses to fully suppress automation flags and prevent cloud anti-bot triggers.
  • Custom Browser Arguments: Allows developers to explicitly declare alternate browsers utilizing the --browser flag in deployment CLI pipelines.
  • No-Login Extraction: Bypasses any requirements for active session tokens, cookies, or WeChat developer accounts by simulating a clean visitor session.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*