chinese-content-extraction
Extract content from Chinese platforms (WeChat articles, Zhihu, etc.) with full text, images, and formatting preserved as Markdown.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Extract content from Chinese platforms (WeChat articles, Zhihu, etc.) with full text, images, and formatting preserved as Markdown.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | chinese-content-extraction |
| description | Extract content from Chinese platforms (WeChat articles, Zhihu, etc.) with full text, images, and formatting preserved as Markdown. |
| trigger | User provides a WeChat (mp.weixin.qq.com) or Zhihu (zhuanlan.zhihu.com) URL and asks to extract content, preserve images, or convert to Markdown. |
WeChat articles are the most reliable Chinese platform to extract. The content is fully present in the initial HTML response.
Download HTML via curl:
curl -s -L -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "https://mp.weixin.qq.com/s/<ARTICLE_ID>" > /tmp/wechat_article.html
Extract title:
import re, html as html_mod
title_match = re.search(r'var msg_title = ["\']([^"\']+)["\']', content)
title = html_mod.unescape(title_match.group(1)) if title_match else 'Unknown'
Find content anchor: Search for id="js_content" — this is the div containing all article body content.
Parse with BeautifulSoup:
<section> tags heavily for layout — detect headings by checking for font-weight: bold, large font-size, or title in class names<img> tags with data-src attributes; some sections have background images via url() in style('text', content), ('image', src, alt), ('heading', text, level)Convert to Markdown:
#, ##, ### based on font size- item or 1. item> textbackground-image: url(...) in their style attribute — extract these as separate images.var first_sceen__time...) and UI text (预览时标签不可点). Strip these from the output.id="js_content" is not found, the page is likely blocked.Zhihu has aggressive anti-bot protection (code 40362) that blocks:
Workarounds (limited success):
api.zhihu.com endpoint (requires valid cookies)Do NOT waste time trying to bypass Zhihu's anti-bot with curl, browser, or API — it consistently returns 403 errors across all methods.
Accept-Language: zh-CN,zh;q=0.9terminal for curl, not execute_code (sandbox lacks packages)beautifulsoup4 in conda environment if needed: pip install beautifulsoup4A ready-to-use extraction script is available at scripts/extract_wechat.py. Usage:
python3 scripts/extract_wechat.py /tmp/wechat_article.html > output.md
Integration testing for AI Agent CLI systems — PTY-driven conversation simulation, tool chain verification, OpenSpec-driven test design, and real-API validation.
Extract web article content from WeChat MP, blogs, and other platforms, converting text, images, formatting, and tables to clean Markdown.
Configure, extend, or contribute to Hermes Agent.
Generate images, video, and audio with ComfyUI — install, launch, manage nodes/models, run workflows with parameter injection. Uses the official comfy-cli for lifecycle and direct REST/WebSocket API for execution.
Decomposition playbook + anti-temptation rules for an orchestrator profile routing work through Kanban. The "don't do the work yourself" rule and the basic lifecycle are auto-injected into every kanban worker's system prompt; this skill is the deeper playbook when you're specifically playing the orchestrator role.
Pitfalls, examples, and edge cases for Hermes Kanban workers. The lifecycle itself is auto-injected into every worker's system prompt as KANBAN_GUIDANCE (from agent/prompt_builder.py); this skill is what you load when you want deeper detail on specific scenarios.