← 返回
未分类 中文

File Downloader

Download a file from a URL and save it locally.
从 URL下载文件并保存到本地。
jpengcheng523-netizen jpengcheng523-netizen 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 417
下载
💾 3
安装
1
版本
#latest

概述

downloader

Download a file from a given URL and save it to a specified local path. Supports any file type accessible via HTTP/HTTPS.

When to Use

USE this skill when:

  • When the user wants to download a file from a URL to the local machine.
  • When the user needs to save a remote resource (image, audio, video, document, etc.) locally.
  • When the user provides a download link and wants to store the file at a specific path.

When NOT to Use

DON'T use this skill when:

  • When the user only wants to view or read a URL content without saving to disk.

Parameters

ParameterTypeRequiredDescription
----------------------------------------
urlstringYesThe URL of the file to download
save_pathstringNoLocal path to save the file (defaults to current directory with original filename)

Commands

Basic Call

python3 scripts/download.py --url 'https://example.com/file.png'

Save to a specific path

python3 scripts/download.py --url 'https://example.com/file.png' --save_path './downloads/image.png'

Examples

"Help me download this image."

python3 scripts/download.py --url 'https://example.com/photo.jpg'

"Download this PDF and save it to the reports folder."

python3 scripts/download.py --url 'https://example.com/report.pdf' --save_path './reports/report.pdf'

Response

Script outputs JSON to stdout:

  • code = 0 — success, data contains the local file path where the file was saved
  • code != 0 — error, show message to the user and suggest retrying
{
  "code": 0,
  "message": "success",
  "data": "./downloads/file.png"
}

Notes

  • Requires requests package: pip install requests

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 07:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,392 📥 322,064
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 832 📥 301,788
data-analysis

Data Analyzer

jpengcheng523-netizen
数据分析与可视化技能,支持 CSV、Excel、JSON 数据,提供统计分析、图表与报告功能
★ 0 📥 748