返回顶部
f

fetch-url

Use this when you need the raw HTTP response for non-HTML content or APIs. Examples: JSON, XML, RSS/Atom, CSV, plain text, files, or downloads. If the target is a human-readable web page (HTML) that should be converted to markdown, use fetch-webpage instead.

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

fetch-url

# Fetch URL Fetch raw HTTP responses from URLs. Supports multiple URLs and custom headers. ## Usage ```bash # Single URL node {baseDir}/scripts/fetch.mjs "https://api.example.com/data" # Multiple URLs node {baseDir}/scripts/fetch.mjs '["https://api.example.com/data1", "https://api.example.com/data2"]' # With custom headers (per-URL) node {baseDir}/scripts/fetch.mjs '["https://api.example.com/json", "https://api.example.com/text"]' '[{"accept":"application/json"}, {"accept":"text/plain"}]' # With timeout node {baseDir}/scripts/fetch.mjs "https://api.example.com/data" --timeout 60000 ``` ## Examples ### JSON API ```bash # GitHub API - get repository info node {baseDir}/scripts/fetch.mjs "https://api.github.com/repos/microsoft/vscode" '{"accept":"application/json","user-agent":"Mozilla/5.0"}' ``` ### XML ```bash # SOAP service or XML endpoint node {baseDir}/scripts/fetch.mjs "https://api.example.com/soap" '{"accept":"application/xml"}' # Sitemap node {baseDir}/scripts/fetch.mjs "https://example.com/sitemap.xml" ``` ### RSS / Atom Feed ```bash # RSS 2.0 feed node {baseDir}/scripts/fetch.mjs "https://example.com/rss.xml" '{"accept":"application/rss+xml"}' # Atom feed node {baseDir}/scripts/fetch.mjs "https://example.com/atom.xml" '{"accept":"application/atom+xml"}' ``` ### CSV / Plain Text ```bash # CSV data node {baseDir}/scripts/fetch.mjs "https://example.com/data.csv" '{"accept":"text/csv"}' # Plain text node {baseDir}/scripts/fetch.mjs "https://example.com/robots.txt" '{"accept":"text/plain"}' ``` ### Multiple Formats ```bash # Fetch JSON and XML in parallel node {baseDir}/scripts/fetch.mjs '["https://api.example.com/data.json", "https://api.example.com/data.xml"]' '[{"accept":"application/json"}, {"accept":"application/xml"}]' ``` ## Options - `urls_json`: JSON array of URLs or a single URL string - `headers_json`: Optional JSON array of headers objects (same length as urls) - `--timeout <ms>`: Request timeout in milliseconds (default: 30000) Notes: - Returns raw HTTP response body - For multiple URLs, returns JSON array of results - Node.js 18+ required (native fetch)

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 fetch-url-1776063850 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 fetch-url-1776063850 技能

通过命令行安装

skillhub install fetch-url-1776063850

下载 Zip 包

⬇ 下载 fetch-url v1.0.0

文件大小: 3.64 KB | 发布时间: 2026-4-14 10:55

v1.0.0 最新 2026-4-14 10:55
- Initial release of the fetch-url skill.
- Fetches raw HTTP responses from URLs, supporting JSON, XML, RSS/Atom, CSV, plain text, files, and downloads.
- Allows fetching from multiple URLs in parallel and supports custom headers per URL.
- Supports request timeout configuration.
- Designed for non-HTML content; for HTML-to-markdown conversion, use fetch-webpage.

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

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

p2p_official_large
返回顶部