# web-extract

> Save any web page as clean Markdown or ad-free single-file styled HTML, with site rules for WeChat, X/Twitter, Weibo, Xiaohongshu, zsxq, GitHub Gist, and Douban.

web-extract is a paid AI agent skill on Agensi by Seyee White, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Seyee White](https://www.agensi.io/creators/seyee-white)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/web-extract
- Tags: llm-ops, productivity, web-scraping, markdown, cli, node-js, web-extract, html-archiving

## About this skill

`web-extract` gives your AI agent a structured workflow to turn web pages into clean, token-efficient Markdown or ad-free single-file styled HTML using the `web-extract` CLI.

### What It Does
- **Clean Markdown Extraction (`--md`)**: Strips navigation, ads, sidebars, comments, and recommendation clutter while separating structured metadata (`title`, `author`, `publishedAt`, `siteName`, `domain`).
- **Single-File Styled HTML Archiving (`--html`)**: Preserves original page styling (pruned to only the CSS actually used) with scripts and ads removed. Supports `--article` (body only), pure-CSS offline image carousels, and three image persistence options (`--assets`, `--embed-images`, or `--upload-images` to your own Alibaba Cloud OSS or custom CLI like PicGo).
- **Smart Fetch Mode Routing**: Guides the agent when to use fast static fetching (hundreds of ms), ephemeral headless Chrome rendering (`--browser` for JS-rendered pages like X/Twitter, Weibo, and WeChat), or `--attach` to connect to an already-open Chrome tab for login-gated sites (Xiaohongshu, zsxq) without touching or exporting cookies.
- **Dedicated Site Rules**: Built-in extraction rules for WeChat Official Accounts (`mp.weixin.qq.com`), X/Twitter, Weibo, Xiaohongshu, zsxq (`wx.zsxq.com`), GitHub Gist, and Douban (status & topics), plus automatic scoring for general blogs, news, and docs.
- **Built-in Diagnostics**: Teaches the agent to detect redirects or captchas from short-output hints and run `web-extract dump` instead of burning tokens on blind retries.

### Requirements & Transparency
- Requires **Node.js 22+**, plus a local Chrome or Edge browser only when using `--browser` or `--attach`.
- **Open-Source CLI Notice**: The underlying `web-extract` CLI is publicly available on GitHub (`github.com/seyeeL/web-extract`) under the PolyForm Noncommercial 1.0.0 license. This listing packages the curated, agent-ready English `SKILL.md` workflow for one-click installation via Agensi MCP and directly supports ongoing maintenance of site rules and features.
- **Limitations**: Does not bypass login walls, paywalls, or anti-bot captchas; login-gated sites require opening the page in your own browser with `--attach`.

## Requires

- Node.js 22+
- GitHub
- Optional: Google Chrome or Edge (for --browser / --attach)
- Optional: Alibaba Cloud OSS or custom upload CLI (for --upload-images)

## Known limitations

Requires Node.js 22+. Browser rendering needs local Chrome/Edge. Sites with heavy bot detection may require manual session attachment via debugging port.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the web-extract skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does 'web extract' help reduce token usage in my LLM workflows?

This skill uses specialized heuristics to strip away ads, tracking scripts, and navigation menus before passing data to your agent, which saves token costs and prevents the model from being confused by non-content noise.

### What are the technical requirements to run this skill locally?

The skill requires Node.js 22+ and a local installation of Chrome or Edge if you need to extract data from JavaScript-heavy or dynamic websites.

### Can this skill handle social media platforms with complex layouts?

Yes, it includes dedicated extraction rules for platforms like WeChat, X/Twitter, and GitHub Gists to ensure threads and social posts are captured in a readable, structured format.

### What is included in the purchase of the 'web extract' skill?

You receive the full CLI tool, documentation for integration, and any specialized extraction rulesets developed for the supported platforms.

### How does the skill handle content that is behind a login or session gate?

For platforms with strict login walls like Xiaohongshu, you can use the `--attach` flag to link the skill to an existing active browser session on your machine.

### Is this skill compatible with specific AI agent frameworks?

The skill is framework-agnostic and can be integrated into any AI agent or workflow that can execute CLI commands or interact with Node.js modules.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
