scrape

A tool that fetches a webpage and turns its content into clean Markdown, a plain-text format useful for reading and processing documents.

In plain words
What is it for?
Use it to read articles or documentation, extract webpage content, or process one or more URLs as Markdown or JSON.
Why use it?
It removes webpage layout and supports several ways to access sites that use JavaScript or block basic scrapers.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/5uck1ess/devkit/scrape
Any agent
npx skills add 5uck1ess/devkit --skill scrape
Clone the repo
git clone --depth 1 https://github.com/5uck1ess/devkit

Made for: Claude Code, Codex.

Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,174 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00066 $0.03174
Opus 5 $0.00033 $0.01587
Sonnet 5 $0.00013 $0.00635
Haiku 4.5 $0.00007 $0.00317

Measured 2d ago against content hash 123410c5781e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

scrape scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

from urllib.parse import urlparse
skills/scrape/SKILL.md · 247 lines

How it starts

The opening of the file, as written. The whole thing — 247 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Web Scrape to Markdown

Fetch a URL and convert it to clean, LLM-ready Markdown. Supports multiple backends with automatic fallback.

Usage

/devkit:scrape https://example.com
/devkit:scrape https://example.com --json
/devkit:scrape https://example.com https://other.com
/devkit:scrape https://example.com --backend playwright

Arguments

  • One or more URLs to scrape
  • --json — wrap output as Markdown-in-JSON: { "url": "...", "title": "...", "markdown": "..." }
  • --backend <name> — force a specific backend (see below). Default: auto-detect.

Backends (in priority order)

  1. Jina Reader — prepend https://r.jina.ai/ to the URL. Returns Markdown by default. Use if JINA_API_KEY is set (higher rate limits) or anonymously (~20 RPM). Best for articles and docs.
  2. Playwright — use if npx playwright --version succeeds (optional dep, install with npx playwright install chromium). Best for JS-heavy SPAs and sites that block headless scrapers. Free and local — no API keys.
  3. Camoufox — patched Firefox with leak-fixed JA3/TLS fingerprints. Use if python -m camoufox version succeeds (install: pip install -U camoufox[geoip] && python -m camoufox fetch). Free and local. Use when Playwright returns a challenge page (Cloudflare "Just a moment...", DataDome, PerimeterX). Auto-triggered when Playwright response body matches challenge signatures (cf-chl-bypass, __cf_chl_, _Incapsula_Resource).
  4. Scweet (X/Twitter only) — specialized scraper for x.com / twitter.com URLs. Use if SCWEET_COOKIES_PATH is set (points at a JSON cookie file exported from a logged-in browser). Auto-routed when host is x.com or twitter.com — other backends don't work reliably on X post-API lockdown.
  5. Firecrawl — use if FIRECRAWL_API_KEY is set. Paid API. Last-resort anti-bot bypass when stealth browsers still get blocked.
  6. WebFetch fallback — use Claude's built-in WebFetch tool. No API key needed, but returns raw content (less clean).

Read the full file on GitHub · 247 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 247 lines · 66 tokens per session scan A 123410c5781e

Subscribe to this mod's changes

scrape is a skill published in the GitHub repository 5uck1ess/devkit (5 stars, last pushed 13d ago), licensed MIT. It adds 66 tokens to every session and 3,174 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.