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.
技能名称: coze-web-fetch
详细描述:
使用 coze-coding-dev-sdk 从任意 URL 获取并提取结构化内容。以多种输出格式返回文本、图片和链接。
bash
npx ts-node {baseDir}/scripts/fetch.ts -u https://example.com/article
bash
npx ts-node {baseDir}/scripts/fetch.ts \
-u https://example.com/page1 \
-u https://example.com/page2
bash
npx ts-node {baseDir}/scripts/fetch.ts \
-u https://docs.python.org/3/tutorial/ \
--format markdown
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> |
| 格式 | 扩展名 |
|---|---|
| Office 文档 |
============================================================
获取的内容
============================================================
标题: Example Article
URL: https://example.com/article
[图片] https://example.com/image.jpg
[链接] 相关文章 -> https://example.com/related
markdown
URL: https://example.com/article
这是主要文章内容...

原始 API 响应,包含完整的内容结构。
该提取器可提取三种类型的内容:
| 类型 | 描述 |
|---|---|
| 文本 | 从页面提取的文本内容 |
| 图片 |
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 coze-web-fetch-1776075610 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 coze-web-fetch-1776075610 技能
skillhub install coze-web-fetch-1776075610
文件大小: 3.78 KB | 发布时间: 2026-4-15 12:20