webfetch-mdFetch any webpage and convert its main content into clean Markdown format, preserving image links and resolving relative URLs.
Install via ClawdBot CLI:
clawdbot install ShiJianwen/webfetch-md抓取任意网页,转换为干净的 Markdown 格式,保留图片链接。
webfetch-md url="https://example.com"
# 基本使用(输出 JSON 格式)
npx webfetch-md https://example.com
# 或使用 --url 参数
npx webfetch-md --url https://example.com
# 提取 Markdown 内容(配合 jq)
npx webfetch-md https://example.com | jq -r '.markdown'
# 保存到文件
npx webfetch-md https://example.com | jq -r '.markdown' > article.md
CLI 和工具都输出统一的 JSON 格式:
{
"success": true,
"title": "文章标题",
"markdown": "# 文章标题\n\n正文内容...",
"images": ["https://example.com/img1.png"],
"imageCount": 1,
"contentLength": 1523
}
const { fetchAsMarkdown } = require('./index');
const result = await fetchAsMarkdown('https://example.com');
console.log(result.markdown);
!alt 格式)按优先级选择正文容器:
article 标签main 标签 [role="main"] 属性.post-content / .entry-content 类.content / .post 类#content / #main IDbody 标签工具返回统一的 JSON 格式,包含 success 字段标识操作状态:
{
"success": false,
"error": "错误信息"
}
webfetch-md/
├── index.js # 核心功能模块
├── cli.js # CLI 和 OpenClaw 工具入口
├── package.json # 依赖配置
├── test.js # 测试脚本
└── SKILL.md # 技能文档
# 运行测试
npm test
# 或直接测试
node test.js https://example.com
Generated Mar 1, 2026
News aggregators can use this tool to automatically fetch and convert articles from various sources into Markdown, enabling easy content curation and republishing. It helps streamline editorial workflows by extracting clean text and preserving images for multimedia integration.
Researchers can utilize this skill to capture web-based articles, papers, or reports and convert them into Markdown for note-taking, citation management, or inclusion in research documents. It ensures accurate content extraction while maintaining image references for visual data.
Marketing teams can employ this tool to analyze competitor websites by converting their content into Markdown for keyword analysis, structure evaluation, and performance benchmarking. It aids in optimizing web content strategies by providing a standardized format for comparison.
E-commerce platforms can integrate this skill to fetch product descriptions from supplier websites and convert them into Markdown for consistent formatting across their catalog. It simplifies content updates and ensures images are retained for product displays.
Developers and IT teams can use this tool to capture online tutorials, API documentation, or forum posts and convert them into Markdown for internal knowledge bases or offline reference. It preserves code snippets and diagrams through image links for comprehensive documentation.
Offer a cloud-based API or web interface that allows users to access the web-to-Markdown conversion tool on a subscription basis, with tiered pricing based on usage volume or features. Revenue is generated through monthly or annual fees from businesses and individual users.
Provide consulting and development services to integrate this tool into existing platforms like CMS, CRM, or research software, with customizations for specific industries or workflows. Revenue comes from one-time project fees or ongoing support contracts.
Release a free version with basic conversion capabilities to attract individual users, while offering premium features such as batch processing, advanced filtering, or API access for enterprises. Revenue is generated through upgrades and enterprise licensing.
💬 Integration Tip
Integrate via CLI commands or Node.js module for simple automation; ensure Node.js is installed and use the provided JSON output format for easy data parsing in applications.
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.
Provides a 7-step debugging protocol plus language-specific commands to systematically identify, verify, and fix software bugs across multiple environments.
A comprehensive skill for using the Cursor CLI agent for various software engineering tasks (updated for 2026 features, includes tmux automation guide).
Write, run, and manage unit, integration, and E2E tests across TypeScript, Python, and Swift using recommended frameworks.
Control and operate Opencode via slash commands. Use this skill to manage sessions, select models, switch agents (plan/build), and coordinate coding through Opencode.
Coding style memory that adapts to your preferences, conventions, and patterns for consistent coding.