wget-reader

📁 beshkenadze/claude-skills-marketplace 📅 12 days ago
8
总安装量
2
周安装量
#34513
全站排名
安装命令
npx skills add https://github.com/beshkenadze/claude-skills-marketplace --skill wget-reader

Agent 安装分布

replit 1
openclaw 1
opencode 1
github-copilot 1
claude-code 1

Skill 文档

Wget URL Reader

Overview

Fetches content from URLs using wget command-line tool. Supports downloading files, reading web pages, and retrieving API responses.

Instructions

  1. When user provides a URL to read or fetch:

    • Validate the URL format
    • Use wget with appropriate flags based on content type
  2. For reading content to stdout (display):

    wget -qO- "<URL>"
    
  3. For downloading files:

    wget -O "<filename>" "<URL>"
    
  4. For JSON API responses:

    wget -qO- --header="Accept: application/json" "<URL>"
    
  5. Common wget flags:

    • -q: Quiet mode (no progress output)
    • -O-: Output to stdout
    • -O <file>: Output to specific file
    • --header: Add custom HTTP header
    • --timeout=<seconds>: Set timeout
    • --tries=<n>: Number of retries
    • --user-agent=<agent>: Set user agent

Examples

Example: Read webpage content

Input: “Read the content from https://example.comCommand:

wget -qO- "https://example.com"

Example: Download a file

Input: “Download the file from https://example.com/data.jsonCommand:

wget -O "data.json" "https://example.com/data.json"

Example: Fetch API with headers

Input: “Fetch JSON from https://api.example.com/dataCommand:

wget -qO- --header="Accept: application/json" "https://api.example.com/data"

Example: Download with timeout and retries

Input: “Download with 30 second timeout” Command:

wget --timeout=30 --tries=3 -O "output.txt" "<URL>"

Guidelines

Do

  • Always quote URLs to handle special characters
  • Use -q flag to suppress progress bars in scripts
  • Add --timeout for unreliable endpoints
  • Respect robots.txt and rate limits

Don’t

  • Use --no-check-certificate unless necessary
  • Fetch URLs without validating format first
  • Ignore HTTP error codes in responses
  • Store credentials in command history