New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Fetches web pages and converts their HTML to clean markdown for reading or extracting content from URLs.

skills.sh installs
264
GitHub stars
342
last updated
Jun 3, 2026
View on GitHub

What it does

  • Covers single-URL and parallel multi-URL fetching through scripts/fetch_url.py with background processes
  • Supports --timeout, --max-length, and --raw flags to control request duration, output size, and HTML output
  • Converts headings, lists, bold and italic text, and code blocks to markdown while removing navigation, footers, and ads
  • Designed for reading articles and extracting text when the built-in WebFetch tool fails on network restrictions

Install

$ npx -y skills add spacezephyr/myskill --skill web-scraper -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Web Scraper

Fetch web page content and convert to clean markdown format.

Usage

Run the fetch script to get web content:

python3 scripts/fetch_url.py <url> [options]

Options

  • --timeout <seconds>: Request timeout (default: 30)
  • --max-length <chars>: Maximum output length (default: 100000)
  • --raw: Output raw HTML instead of markdown

Examples

Fetch single URL:

python3 scripts/fetch_url.py "https://example.com/article"

Fetch with custom timeout:

python3 scripts/fetch_url.py "https://example.com/article" --timeout 60

Fetch multiple URLs in parallel:

for url in "https://url1.com" "https://url2.com"; do
  python3 scripts/fetch_url.py "$url" &
done
wait

Workflow

  1. Single URL: Run fetch_url.py with the URL
  2. Multiple URLs: Run multiple fetch commands in parallel using background processes
  3. Handle errors: If a URL fails, check:
    • Network connectivity
    • URL validity
    • Website may block automated requests (try different User-Agent or use browser automation)

Output Format

Details

Repository
github.com/spacezephyr/myskill
Categories
Browser Automation & Scraping, Research & Academic
First seen
Jun 3, 2026

More from spacezephyr/myskill

All 2