Documentation v1.0.0

web2md

Convert any URL to clean, readable Markdown. Use when the user wants to save a web article as Markdown, extract clean...

linbeiganlinniang 更新于 2026-05-13 1 浏览
下载 SKILL

技能说明

Convert any URL to clean, readable Markdown. Use when the user wants to save a web article as Markdown, extract clean content from a webpage, batch-convert URLs to Markdown files, or add AI summaries to web articles. Triggers on requests like "convert this to markdown", "save this article", "extract content from URL", "web to md", or when processing web reading lists.

使用场景

Extract clean article content from any URL and convert it to readable Markdown.

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/web2md
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 19 kB
SKILL.md text/markdown
---
name: web2md
description: Convert any URL to clean, readable Markdown. Use when the user wants to save a web article as Markdown, extract clean content from a webpage, batch-convert URLs to Markdown files, or add AI summaries to web articles. Triggers on requests like "convert this to markdown", "save this article", "extract content from URL", "web to md", or when processing web reading lists.
---

# Web to Markdown

Extract clean article content from any URL and convert it to readable Markdown.

## Quick Start

```bash
web2md https://example.com/article
web2md https://example.com/article -o article.md
web2md https://example.com/article --summary
```

## Installation

```bash
pip install web2md
```

## Common Patterns

### Save an article the user shared

```bash
web2md <url> -o ~/Documents/reading/<slug>.md
```

### Extract with AI summary (needs Ollama running)

```bash
web2md <url> --summary --ai -o article.md
```

### Batch convert a reading list

```bash
web2md urls.txt --batch -d output/
```

## How It Works

web2md uses `readability-lxml` to extract the main article content (stripping ads, nav, sidebars) and `markdownify` to convert the HTML to clean Markdown. It preserves headings, links, lists, and text formatting while removing clutter.

## What It's Good For

- Saving articles for offline reading
- Extracting content for LLM context
- Archiving blog posts and news articles
- Building a personal knowledge base from web content
- Research: batch-convert sources to Markdown

## Limits (Free Tier)

- Single URL at a time
- No image download
- No AI summarization (heuristic fallback only)

For batch mode, image download, and AI features: <https://web2md.dev> (paid CLI, $19)

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。