Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

web-to-markdownWeb TO Markdown 网页抓取

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

10,584

周安装

450

GitHub Stars

1

下载量

3,708
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:web-to-markdown(Web TO Markdown 网页抓取)
来源仓库:https://github.com/josephxie1/web-to-markdown
安装命令:
openclaw skills install web-to-markdown
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install web-to-markdown

简介

用于将网页内容转换为 Markdown 格式并提取图片,适合抓取文章、整理文档或下载网站图片。

  • 适用于需要快速获取网页可读文本、批量保存图片或辅助内容创作的场景。
  • 通过支持 markdown.new、defuddle.md 等服务实现网页转码,自动降级保障可用性。
  • 安装命令:openclaw skills install web-to-markdown,需确认网络权限及目标站点访问范围。
  • 注意保留原始信息准确性,避免将推测内容写入确定结论,涉及对外发布时控制语气。

SKILL.md

name
web-to-markdown
description
|

Web to Markdown

概述 / Overview

通用网页抓取工具,支持: A general-purpose web scraping tool that supports:

  • 将网页内容转换为干净的 Markdown / Converting web content to clean Markdown
  • 从任意网站提取图片 URL / Extracting image URLs from any website
  • 批量下载网页图片 / Batch downloading images from web pages

适用于内容阅读、图片收集、资料整理等场景。 Suitable for content reading, image collection, and data organization.

功能模块 / Features

1. 网页转 Markdown / Web to Markdown

将网页 URL 转换为干净的 Markdown 文本,移除广告、导航栏等无关内容。 Converts a web page URL into clean Markdown text, removing ads, navigation bars, and other irrelevant content.

URL 前缀服务 / URL Prefix Services:

服务 Service前缀 Prefix特点 Notes
markdown.newhttps://markdown.new/首选,速度快 / Preferred, fast
defuddlehttps://defuddle.md/备选 / Fallback
r.jina.aihttps://r.jina.ai/适合动态内容 / Good for dynamic content

使用 / Usage:

curl -s "https://markdown.new/https://example.com/article"
curl -s "https://r.jina.ai/https://example.com/article"

2. 提取网页图片 / Extract Images from Web Pages

从任意网页提取所有图片 URL。 Extracts all image URLs from any web page.

通用提取 / General Extraction:

# 提取所有图片 URL / Extract all image URLs
curl -s "https://r.jina.ai/<url>" | grep -oE 'https://[^)\s"]+\.(jpg|jpeg|png|gif|webp|avif)'

使用脚本 / Using the Script:

python scripts/extract_images.py <url> [--output urls.txt]

3. 批量下载图片 / Batch Download Images

从网页提取图片并批量下载到本地。 Extracts images from web pages and downloads them in batch to local storage.

使用脚本 / Using the Script:

python scripts/download_images.py <url> [--output <dir>] [--limit <n>] [--min-size <bytes>]

参数 / Parameters:

  • url: 网页 URL / Web page URL
  • --output: 输出目录(默认 ~/.openclaw/images)/ Output directory (default: ~/.openclaw/images)
  • --limit: 最大下载数(默认 50)/ Max downloads (default: 50)
  • --min-size: 最小文件大小,过滤小图标(默认 10KB)/ Min file size to filter out small icons (default: 10KB)
  • --ext: 只下载指定格式(jpg/png/gif/webp)/ Only download specific formats (jpg/png/gif/webp)

示例 / Examples:

# 下载网页中的所有大图 / Download all large images from a page
python scripts/download_images.py "https://example.com/gallery" --output ~/Downloads/images

# 只下载 PNG,最多 20 张 / Download only PNGs, max 20
python scripts/download_images.py "https://example.com" --ext png --limit 20

# Pinterest(自动转换原始尺寸)/ Pinterest (auto-converts to original size)
python scripts/download_images.py "https://www.pinterest.com/search/pins/?q=architecture"

工作流程 / Workflow

网页内容抓取 / Web Content Scraping

  1. 首选 markdown.new/ / Prefer markdown.new/
  2. 失败则尝试 defuddle.md/ / Fall back to defuddle.md/
  3. 再失败尝试 r.jina.ai/ / Then try r.jina.ai/
  4. 最终使用本地 Scrapling 脚本 / Finally use local Scrapling script

图片提取下载 / Image Extraction & Download

  1. 使用 r.jina.ai 获取网页内容 / Use r.jina.ai to fetch page content
  2. 正则提取所有图片 URL / Extract all image URLs via regex
  3. 过滤小图片(图标、表情等)/ Filter out small images (icons, emojis, etc.)
  4. 智能命名并下载保存 / Smart naming and download

特殊网站支持 / Special Website Support

Pinterest

自动识别 Pinterest URL,将缩略图转换为原始尺寸: Automatically detects Pinterest URLs and converts thumbnails to original size:

  • 236xoriginals
  • 564xoriginals

其他常见网站 / Other Common Websites

脚本会自动处理各种网站的图片 URL 格式,包括: The scripts automatically handle various image URL formats, including:

  • CDN 链接 / CDN links
  • 带参数的 URL / URLs with query parameters
  • 懒加载图片 / Lazy-loaded images

脚本说明 / Script Reference

scripts/scrape.py

本地网页抓取脚本,作为在线服务的降级方案。 Local web scraping script, used as a fallback for online services.

python scripts/scrape.py <url>

scripts/extract_images.py

提取网页中的图片 URL,输出为列表。 Extracts image URLs from a web page and outputs them as a list.

python scripts/extract_images.py <url> [--output urls.txt]

scripts/download_images.py

批量下载网页图片。 Batch downloads images from a web page.

python scripts/download_images.py <url> [options]

依赖 / Dependencies

extract_images.pydownload_images.py 仅使用 Python 标准库,无需额外安装。 extract_images.py and download_images.py only use the Python standard library — no extra installation needed.

scrape.py 需要安装 scrapling(本地抓取降级方案): scrape.py requires scrapling (local scraping fallback):

pip install scrapling

注意事项 / Notes

  • 遵守网站的 robots.txt 和使用条款 / Respect the website's robots.txt and terms of use
  • 大量下载前考虑网站服务器压力 / Consider server load before mass downloading
  • 部分网站有防盗链,可能无法直接下载 / Some sites have hotlink protection and may block direct downloads
  • 动态加载的图片可能需要使用 r.jina.ai / Dynamically loaded images may require r.jina.ai

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

80.98%
按下载量换算3,003

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills