article-extraction
Extract web article content from WeChat MP, blogs, and other platforms, converting text, images, formatting, and tables to clean Markdown.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Extract web article content from WeChat MP, blogs, and other platforms, converting text, images, formatting, and tables to clean Markdown.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Integration testing for AI Agent CLI systems — PTY-driven conversation simulation, tool chain verification, OpenSpec-driven test design, and real-API validation.
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.
Himalaya CLI: IMAP/SMTP email from terminal.
| name | article-extraction |
| description | Extract web article content from WeChat MP, blogs, and other platforms, converting text, images, formatting, and tables to clean Markdown. |
| trigger | User asks to extract content from a web article/blog/WeChat MP/Zhihu post and convert to markdown |
Extract web article content (text, images, formatting, tables) and convert to clean Markdown.
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" "URL" > /tmp/article.html
Key selectors by platform:
mp.weixin.qq.com): id="js_content" — contains all article HTML<article>, .post-content, .entry-content, .rich_media_contentUse terminal with conda environment (not execute_code sandbox):
eval "$($HOME/miniconda3/bin/conda shell.bash hook)" && conda activate py312 && pip install beautifulsoup4 -q
Parsing strategy for WeChat MP (most common):
var msg_title = "..." in page JSid="js_content" div, extract HTML between it and end markers (id="js_pc_qr_code", id="js_tpl_container")img tags → section with font-weight: bold or large font-size → headingstrong/b → **text**~/article-name.mdZhihu has aggressive anti-bot that blocks ALL automated access:
{"error":{"code":40362}}/api/v4/articles/ID) → 403 with code:10003Workaround: Ask user to copy-paste the article content, or find a repost/mirror on another platform.
Browser navigation triggers captcha. Use curl instead — it bypasses the captcha and gets the full HTML.
WeChat wraps images in complex <section> → <span> → <figure> → <img> chains. Must:
<img> tags for data-src (primary) then src (fallback)<section> style for background-image: url(...)execute_code sandbox does NOT have conda packages installed. Always use terminal with the conda activation command for any Python script requiring bs4, requests, etc.""" or ''') in execute_code — they break at the script boundary due to how the sandbox processes the code. Use a list of single-quoted strings instead: lines = ["line1", "line2"]; f.write('\n'.join(lines))cat >> target to appendWeChat HTML often groups all <img> tags at the top of the content div, but they render inline in the actual article. Use a two-pass approach:
<img> tag, pop the next image from the list
This ensures images appear at their correct semantic positions in the output Markdown.WeChat articles often render tables as flat sequences of div/section elements. Detect these patterns (repeated label-value pairs) and reconstruct as proper Markdown tables.
references/verl-agentic-rl-analysis.md — Detailed analysis of VeRL source code architecture, state machine implementation, and Agentic RL training pipelinereferences/inline-svg-diagrams.md — Generate inline SVG diagrams as Base64 data URIs for embedding illustrations directly in Markdown documents (no external hosting needed)