返回顶部
m

markdown-new网页转Markdown

Convert public web pages into clean Markdown with markdown.new for AI workflows. Use when tasks require URL-to-Markdown conversion for summarization, RAG ingestion, extraction, archiving, or token reduction, including selecting conversion method (auto/ai/browser), enabling image retention, and handling rate limits or conversion failures.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
17,890
下载量
免费
免费
40
收藏
概述
安装方式
版本历史

markdown-new

Markdown.new

使用此技能通过 markdown.new 将公开 URL 转换为适合 LLM 处理的 Markdown 格式。

路径解析(关键)

  • - 相对路径(如 scripts/... 和 references/...)应从技能目录解析,而非工作区根目录。
  • 若当前目录未知,请使用绝对脚本路径。

bash
python3 ~/.codex/skills/markdown-new/scripts/markdownnewfetch.py https://example.com

bash
cd ~/.codex/skills/markdown-new
python3 scripts/markdownnewfetch.py https://example.com

避免从任意工作区根目录使用以下模式:

bash
python3 scripts/markdownnewfetch.py https://example.com

工作流程

  1. 1. 验证输入 URL 为公开的 http 或 https 地址。
  2. 首先使用 --method auto 运行 scripts/markdownnewfetch.py。
  3. 若输出缺少 JS 渲染内容,则使用 --method browser 重新运行。
  4. 仅在需要图片链接时启用 --retain-images。
  5. 捕获响应元数据(x-markdown-tokens、x-rate-limit-remaining 及 JSON 元数据,如有)供下游规划使用。

快速开始

以下命令假设当前目录为技能根目录(~/.codex/skills/markdown-new)。

bash
python3 scripts/markdownnewfetch.py https://example.com > page.md

bash
python3 scripts/markdownnewfetch.py https://example.com --method browser --retain-images --output page.md

bash
python3 scripts/markdownnewfetch.py https://example.com --deliver-md

方法选择

  • - auto:默认值。让 markdown.new 使用其最快的成功管道。
  • ai:强制使用 Workers AI 进行 HTML 到 Markdown 的转换。
  • browser:强制使用无头浏览器渲染 JS 密集型页面。

首先使用 auto,仅在需要时重试 browser。

交付模式

  • - 使用 --deliver-md 强制以 .md 格式输出文件。
  • 在交付模式下,内容包装为:
- - ...markdown... -
  • - 若省略 --output,脚本会根据 URL 自动生成文件名。

API 模式

  • - 前缀模式:
- https://markdown.new/https://example.com?method=browser&retain_images=true
  • - POST 模式:
- POST https://markdown.new/ - JSON 主体:{url:https://example.com,method:auto,retain_images:false}

自动化场景推荐使用 POST 模式及显式参数。

限制与安全

  • - 将 429 视为速率限制(文档限制:500 次请求/天/IP)。
  • 仅转换可公开访问的页面。
  • 遵守 robots.txt、服务条款和版权限制。
  • 不要认为 markdown.new 的输出对每个页面都保证完整;关键提取内容需验证。

参考资料

  • - references/markdown-new-api.md

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 markdown-convert-1776122735 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 markdown-convert-1776122735 技能

通过命令行安装

skillhub install markdown-convert-1776122735

下载

⬇ 下载 markdown-new v1.0.0(免费)

文件大小: 6.72 KB | 发布时间: 2026-4-14 12:43

v1.0.0 最新 2026-4-14 12:43
Version 1.0.0 — Initial Release

- Introduced the "markdown-new" skill for converting public web pages into clean, portable Markdown using markdown.new.
- Added clear workflow and documentation for command-line usage, including method selection (auto/ai/browser) and image retention options.
- Included handling for relative path resolution, rate limits, and conversion failures.
- Provided detailed guidance for API usage, delivery mode, and critical safety considerations.
- Added supporting files: README.md, agents/openai.yaml, references/markdown-new-api.md, scripts/markdown_new_fetch.py.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部