返回顶部
c

coze-web-fetchCoze网页抓取

Fetch and extract content from URLs using coze-coding-dev-sdk. Supports web pages, PDF, Office documents (doc/docx/ppt/pptx/xls/xlsx/csv), text files, e-books (epub/mobi), XML, and images. Returns structured content with text, images, and links.

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

coze-web-fetch

技能名称: coze-web-fetch
详细描述:

Coze Web Fetch

使用 coze-coding-dev-sdk 从任意 URL 获取并提取结构化内容。以多种输出格式返回文本、图片和链接。

快速开始

基础获取

bash
npx ts-node {baseDir}/scripts/fetch.ts -u https://example.com/article

多个 URL

bash
npx ts-node {baseDir}/scripts/fetch.ts \
-u https://example.com/page1 \
-u https://example.com/page2

输出为 Markdown

bash
npx ts-node {baseDir}/scripts/fetch.ts \
-u https://docs.python.org/3/tutorial/ \
--format markdown

输出为 JSON

bash
npx ts-node {baseDir}/scripts/fetch.ts \
-u https://example.com/document.pdf \
--format json

仅文本(无图片/链接)

bash
npx ts-node {baseDir}/scripts/fetch.ts \
-u https://example.com/article \
--text-only

脚本选项

选项描述
-u, --url <url>要获取的 URL(必需,可重复)
--format <fmt>
json、text、markdown(默认:text) | | --text-only | 仅提取文本内容 | | --help | 显示帮助信息 |

支持的文档格式

格式扩展名
PDF.pdf
Office 文档
.doc、.docx、.ppt、.pptx、.xls、.xlsx、.csv | | 文本文件 | .txt、.text | | 电子书 | .epub、.mobi | | XML | .xml | | 图片 | .jpg、.png、.gif、.webp 等 | | 网页 | .html、.htm 或任意 URL |

输出格式

文本(默认)

============================================================
获取的内容
============================================================
标题: Example Article
URL: https://example.com/article



内容


[文本] 这是主要文章内容...

[图片] https://example.com/image.jpg

[链接] 相关文章 -> https://example.com/related

Markdown

markdown

Example Article

URL: https://example.com/article



内容

这是主要文章内容...

图片

JSON

原始 API 响应,包含完整的内容结构。

内容类型

该提取器可提取三种类型的内容:

类型描述
文本从页面提取的文本内容
图片
包含显示信息的图片 URL |
| 链接 | 内容中找到的超链接 |

注意事项

  • - 当只需要文本时,使用 --text-only 可获得更简洁的输出
  • PDF 和 Office 文档会自动解析
  • 图片会重新签名以确保安全访问
  • 单个命令可获取多个 URL

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 coze-web-fetch-1776075610 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 coze-web-fetch-1776075610 技能

通过命令行安装

skillhub install coze-web-fetch-1776075610

下载

⬇ 下载 coze-web-fetch v0.1.0(免费)

文件大小: 3.78 KB | 发布时间: 2026-4-15 12:20

v0.1.0 最新 2026-4-15 12:20
Initial release.

- Fetch and extract content from URLs using coze-coding-dev-sdk.
- Supports web pages, PDF, Office documents, text files, e-books, XML, and images.
- Returns structured output with text, images, and links.
- Offers output in text, markdown, or JSON formats.
- Allows fetching multiple URLs in a single command.
- Provides options for text-only extraction.

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

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

p2p_official_large
返回顶部