modelscope.cn

weixin-fetch

Use this skill when users want to fetch WeChat (微信?

Installation

$ npx skills add https://modelscope.cn

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from modelscope.cn · top by installs.

npx skills add https://modelscope.cn

Browse all from modelscope.cn

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,544 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

WeChat Article Fetcher (微信文章抓取)

Fetch WeChat (微信公众号) articles and convert to clean Markdown using Playwright browser automation.

Features

  • Real Chromium browser to bypass WeChat anti-bot protections
  • Automatic lazy-loaded image handling (data-src → src)
  • Auto-generated filename from publish date + title (YYYYMMDD format)
  • Metadata extraction (author, publish time)
  • Clean Markdown output with preserved images

Dependencies

pip install playwright markdownify
playwright install chromium

Usage

# Auto-generate filename (YYYYMMDD+Title format)
python scripts/fetch_weixin.py "https://mp.weixin.qq.com/s/xxxxx"

# Custom filename
python scripts/fetch_weixin.py "https://mp.weixin.qq.com/s/xxxxx" article.md

Response Pattern

When user requests WeChat article fetching:

  1. Validate URL: Ensure it's a WeChat URL (mp.weixin.qq.com)
  1. Execute fetching:

``bash python scripts/fetchweixin.py <url> [outputfilename] `` Output filename is optional - auto-generates as YYYYMMDD+Title

  1. Report results:

- Confirm file saved with statistics (characters, words, images) - Show the auto-generated filename

Example Workflows

Auto-generated filename

# User: "抓取这篇微信文章"
python scripts/fetch_weixin.py "https://mp.weixin.qq.com/s/xxxxx"

# Result:
# ✓ Saved: 20251214关于财政政策和货币政策的关系.md
# ✓ Statistics: 12,345 characters, 8,234 words, 5 images

Custom filename

# User: "Fetch this WeChat article, save as economy.md"
python scripts/fetch_weixin.py "https://mp.weixin.qq.com/s/xxxxx" economy.md

# Result:
# ✓ Saved: economy.md

Troubleshooting

Issue Solution
WeChat blocked Script uses real browser to bypass anti-bot
Timeout Script has 60s timeout with retry - usually succeeds on second attempt
Playwright not installed Run: pip install playwright && playwright install chromium
Empty content Wait for page to fully load; check if article is still accessible
Missing images Script auto-converts lazy-loaded images; check network connectivity