跳到正文
TakoAPI
返回技能列表

url-fetcher

由 johstracke 提供

Web & Frontend Development
1.1k下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Simple web content fetching without API keys or external dependencies.

描述

该技能的功能

Fetches web content using Python's standard library with no external dependencies or API keys. Supports HTML retrieval, basic HTML-to-markdown conversion, and safe file writes with path and URL validation built in.

No API key, no pip installs, and no cost make it the fastest way to add web fetching to an agent workflow with zero setup.

何时使用

  • Saving articles to local markdown files for offline reading
  • Batch-downloading documentation pages into a workspace folder
  • Extracting plain text from blog posts for further processing
  • Previewing raw HTML of a URL before deciding to save it
  • Collecting multiple research pages into organized local files

示例工作流

输入

User asks: fetch this article and save it as markdown to my workspace

智能体
  1. 1

    Validates the URL is http/https and not localhost or internal

  2. 2

    Runs url_fetcher.py fetch --markdown <url> ~/workspace/article.md

  3. 3

    Checks the output path is within allowed directories

  4. 4

    Writes converted markdown content to the specified file

输出

Markdown file saved at ~/workspace/article.md with HTML tags stripped and content converted to plain text

安装

clawhub install johstracke/url-fetcher

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接