← 返回 Skills 市场
34
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install url2md
功能描述
Convert HTML web pages from HTTP/HTTPS URLs to clean, readable Markdown files with optional batch processing and formatting features.
使用说明 (SKILL.md)
Url2md
Convert web pages to clean, readable Markdown.
Quick Start
Single URL
python3 scripts/url2md.py https://example.com/article
Output to a file:
python3 scripts/url2md.py https://example.com/article -o article.md
Batch Conversion
Create a file with URLs (one per line):
https://example.com/article-1
https://example.com/article-2
https://example.com/article-3
Convert all and save to a directory:
python3 scripts/url2md.py -f urls.txt -d ./markdown_files/
Features
- No dependencies: Uses only Python standard library (
urllib,html.parser) - Title extraction: Automatically adds page title as H1
- Link resolution: Converts relative URLs to absolute
- Basic formatting: Headings, paragraphs, lists, links, images, code blocks, tables
- Noise removal: Strips scripts, styles, navigation, footers, and other boilerplate
Script Reference
scripts/url2md.py
Usage:
url2md.py [url] [options]
Options:
| Option | Description |
|---|---|
url |
Single URL to convert |
-o, --output |
Output file (default: stdout) |
-f, --file |
File containing URLs to convert |
-d, --dir |
Output directory for batch conversion |
--no-title |
Skip adding page title as H1 |
--timeout |
Request timeout in seconds (default: 30) |
-v, --version |
Show version |
Examples:
# Single URL to stdout
python3 scripts/url2md.py https://docs.python.org/3
# Save to file
python3 scripts/url2md.py https://docs.python.org/3 -o python-docs.md
# Batch with custom timeout
python3 scripts/url2md.py -f urls.txt -d ./output/ --timeout 60
# Skip title
python3 scripts/url2md.py https://example.com --no-title
When to Use
- Converting documentation pages to Markdown for local reference
- Archiving web articles as text files
- Building static content from dynamic sources
- Extracting readable content when browser tools are unavailable
- Batch processing a list of URLs
Limitations
- Converts static HTML only; does not execute JavaScript
- Complex layouts (multi-column, heavy CSS) may lose structural fidelity
- Login-required or paywalled content requires authentication tokens
- Rate-limited sites may block repeated requests
安全使用建议
This skill is reasonable to use for URL-to-Markdown conversion. Before installing or invoking it, review the included script, run it only on intended URLs, avoid embedding secrets in URLs, choose output paths carefully, and treat generated Markdown from websites as untrusted content.
功能分析
Type: OpenClaw Skill
Name: url2md
Version: 1.0.0
The url2md skill is a straightforward utility for converting web pages to Markdown format using only Python's standard library. The core logic in `scripts/url2md.py` uses `urllib.request` to fetch HTML and `html.parser` to process it, with no external dependencies, obfuscation, or evidence of malicious intent such as data exfiltration or unauthorized command execution.
能力评估
Purpose & Capability
The SKILL.md, README, and visible Python code consistently describe and implement converting web pages to Markdown, including single-URL and batch modes.
Instruction Scope
The skill tells the agent/user to run a local Python script on supplied URLs; this is purpose-aligned, but use should remain tied to explicit URL conversion tasks.
Install Mechanism
There is no installer or dependency download, and the visible code uses Python standard-library modules. Provenance is limited because the source is unknown/homepage none, and the provided script artifact is marked truncated, so confidence is medium rather than high.
Credentials
Network access and local file reads/writes are proportionate for URL fetching, batch URL lists, and Markdown output, but users should choose URLs and output paths deliberately.
Persistence & Privilege
The script can persist fetched web content as Markdown files, but there is no evidence of background persistence, privilege escalation, credential storage, or autonomous behavior outside the conversion task.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install url2md - 安装完成后,直接呼叫该 Skill 的名称或使用
/url2md触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of url2md: convert any web page to clean, readable Markdown.
- Supports single URLs and batch processing from URL lists.
- Outputs can be directed to file or directory; title extraction as H1 included by default.
- Handles standard Markdown formatting (headings, lists, links, images, code blocks, tables).
- Strips boilerplate content including scripts, styles, navigation, and footers.
- Requires no third-party dependencies; uses only Python standard library.
元数据
常见问题
URL to Markdown 是什么?
Convert HTML web pages from HTTP/HTTPS URLs to clean, readable Markdown files with optional batch processing and formatting features. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 34 次。
如何安装 URL to Markdown?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install url2md」即可一键安装,无需额外配置。
URL to Markdown 是免费的吗?
是的,URL to Markdown 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
URL to Markdown 支持哪些平台?
URL to Markdown 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 URL to Markdown?
由 Rex Wang(@rwonly)开发并维护,当前版本 v1.0.0。
推荐 Skills