Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器clawhub未标认证来源可访问clear审计提醒

url-fetcher网址获取器

Agent Skill

url-fetcher 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

45,477

周安装

1,914

GitHub Stars

公开资料未说明

下载量

15,924
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:url-fetcher(网址获取器)
来源仓库:https://github.com/johstracke/url-fetcher
安装命令:
openclaw skills install url-fetcher
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install url-fetcher

简介

仅使用具有 URL 和路径验证、基本 HTML 到 Markdown 转换的 Python stdlib 来获取和保存 Web 内容,并且没有 API 密钥或外部依赖项。

SKILL.md

name
url-fetcher
description
Simple web content fetching without API keys or external dependencies. Uses Python stdlib (urllib) only. Features: fetch HTML/text from URLs, basic HTML to markdown conversion, path-validated file writes (blocks system paths), URL validation (blocks localhost/internal). Security: File writes use is_safe_path() to prevent malicious writes. Perfect for content aggregation, research collection, and web scraping without API costs or dependencies.

URL Fetcher

Fetch web content without API keys or external dependencies. Uses Python standard library only.

Quick Start

url_fetcher.py fetch <url>
url_fetcher.py fetch --markdown <url> [output_file]

Examples:

# Fetch and preview
url_fetcher.py fetch https://example.com

# Fetch and save HTML
url_fetcher.py fetch https://example.com ~/workspace/page.html

# Fetch and convert to basic markdown
url_fetcher.py fetch --markdown https://example.com ~/workspace/page.md

Features

  • No dependencies - Uses Python stdlib (urllib) only
  • No API keys - Completely free to use
  • URL validation - Blocks localhost/internal networks
  • Basic markdown conversion - Extract content from HTML
  • Path validation - Safe file writes only (workspace, home, /tmp)
  • Error handling - Timeout and network error handling

When to Use

  • Content aggregation - Collect pages for processing
  • Research collection - Save articles/pages locally
  • Simple scraping - Extract text from web pages
  • Markdown conversion - Basic HTML to text/markdown
  • No-API alternatives - When you can't use paid APIs

Limitations

  • Basic markdown - Simple regex-based conversion (not a full parser)
  • No JavaScript - Only fetches static HTML
  • Rate limiting - No built-in rate limiting (add your own if needed)
  • Bot detection - Some sites may block the default User-Agent

Security Features

URL Validation

  • ✅ Allows: http/https URLs
  • ❌ Blocks: file://, data://, javascript: URLs
  • ❌ Blocks: localhost, 127.0.0.1, ::1 (internal networks)

File Path Validation

  • ✅ Allows: workspace, home directory, /tmp
  • ❌ Blocks: system paths (/etc, /usr, /var, etc.)
  • ❌ Blocks: sensitive dotfiles (~/.ssh, ~/.bashrc, etc.)

Error Handling

  • Timeout after 10 seconds
  • HTTP error handling
  • Network error handling
  • Character encoding handling

Usage Patterns

Collecting Research

# Fetch multiple articles
url_fetcher.py fetch https://example.com/article1.md ~/workspace/research/article1.md
url_fetcher.py fetch https://example.com/article2.md ~/workspace/research/article2.md

# Convert to markdown for reading
url_fetcher.py fetch --markdown https://example.com/article.md ~/workspace/research/article.md

Content Aggregation

# Fetch pages for processing
url_fetcher.py fetch https://news.example.com ~/workspace/content/latest.html

# Extract text
url_fetcher.py fetch --markdown https://blog.example.com ~/workspace/content/post.md

Quick Preview

# Just preview content (no file save)
url_fetcher.py fetch https://example.com

Advanced Usage

Batch Fetching

#!/bin/bash
# batch_fetch.sh

URLS=(
    "https://example.com/page1"
    "https://example.com/page2"
    "https://example.com/page3"
)

OUTPUT_DIR="$HOME/workspace/fetched"
mkdir -p "$OUTPUT_DIR"

for url in "${URLS[@]}"; do
    filename=$(echo $url | sed 's|/||g')
    url_fetcher.py fetch --markdown "$url" "$OUTPUT_DIR/$filename.md"
    sleep 1  # Be nice to servers
done

Integration with Other Skills

Combine with research-assistant:

# Fetch article
url_fetcher.py fetch --markdown https://example.com/article.md ~/workspace/article.md

# Extract key points
# Then use research-assistant to organize findings

Combine with task-runner:

# Add task to fetch content
task_runner.py add "Fetch article on topic X" "research"

# Fetch when ready
url_fetcher.py fetch https://example.com/topic-x.md ~/workspace/research/topic-x.md

Troubleshooting

Connection Timeout

Error: Request timeout after 10s

Solution: The server is slow or unreachable. Try again later or check the URL.

HTTP 403/429 Errors

Error: HTTP 403: Forbidden

Solution: The site blocks automated requests. Try:

  • Add delay between requests
  • Use a different User-Agent (modify source)
  • Respect robots.txt
  • Consider using an API if available

Encoding Issues

Error with special characters

Solution: The tool uses UTF-8 with error-ignore. Some characters may be lost.

Markdown Quality

Note: Basic markdown extraction

Solution: This tool uses simple regex for HTML→MD conversion. For better results:

  • Use dedicated markdown parsers
  • Or post-process the output
  • Or use a paid API with better parsing

Best Practices

  1. Be respectful - Add delays between requests (don't hammer servers)
  2. Check robots.txt - Respect site's crawling policies
  3. Rate limit yourself - Don't fetch too fast
  4. Validate URLs - Only fetch from trusted sources
  5. Save safely - Always use path-validated outputs
  6. Preview first - Use preview mode before saving

Integration Examples

Python Integration

from pathlib import Path
import subprocess

def fetch_and_process(url):
    """Fetch URL and process"""
    output = Path.home() / "workspace" / "fetched" / "page.md"
    output.parent.mkdir(parents=True, exist_ok=True)
    
    # Fetch
    subprocess.run([
        "python3",
        "/path/to/url_fetcher.py",
        "fetch",
        "--markdown",
        url,
        str(output)
    ])
    
    # Process content
    content = output.read_text()
    return content

Bash Integration

# Function for fetching
fetch_content() {
    local url="$1"
    local output="$2"
    python3 ~/workspace/skills/url-fetcher/scripts/url_fetcher.py \
        fetch --markdown "$url" "$output"
}

# Usage
fetch_content "https://example.com" ~/workspace/example.md

Alternatives

When You Need More Features

For full-featured scraping:

  • Use requests + beautifulsoup4 (requires pip install)
  • Or use scrapy framework (requires pip install)
  • Or use paid APIs (Firecrawl, Apify)

For better markdown:

  • markdownify library (requires pip install)
  • Or use AI-based parsing (OpenAI, Anthropic APIs)

For complex workflows:

  • Browser automation (OpenClaw browser tool)
  • Headless Chrome (Puppeteer, Playwright)
  • Or use scraping APIs (Zyte, ScraperAPI)

Zero-Cost Advantage

This skill requires:

  • ✅ Python 3 (included with OpenClaw)
  • ✅ No API keys
  • ✅ No external packages
  • ✅ No paid services
  • ✅ No rate limiting (other than what you add)

Perfect for autonomous agents with budget constraints.

Contributing

If you improve this skill, please:

  1. Test with security-checker
  2. Document new features
  3. Publish to ClawHub with credit

License

Use freely in your OpenClaw skills and workflows.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

97.5%
按下载量换算15,526

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

未展示

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills