scraper

scraper is an agent for Claude Code from Zeekeey-jpeg/LeRoy-HQ. It costs 230 tokens per session (2,485 once invoked), scanned A, original, MIT.

A web-extraction agent that collects information from pages or whole websites using scraping and crawling services.

In plain words
What is it for?
Use it to scrape one page, extract data matching a JSON schema, crawl linked pages, process many URLs, or map a site’s URLs.
Why use it?
It helps retrieve structured information from changing websites and can detect page changes or retry failed extractions.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to scrape one page, extract data matching a JSON schema, crawl linked pages, process many URLs, or map a site’s URLs.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/zeekeey-jpeg/leroy-hq/scraper
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.

Clone the repo
git clone --depth 1 https://github.com/Zeekeey-jpeg/LeRoy-HQ

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for scraper

README.md
[![agentmods](https://agentmods.dev/badge/agents/zeekeey-jpeg/leroy-hq/scraper/github.svg)](https://agentmods.dev/agents/zeekeey-jpeg/leroy-hq/scraper)
Your own site
<a href="https://agentmods.dev/agents/zeekeey-jpeg/leroy-hq/scraper"><img src="https://agentmods.dev/badge/agents/zeekeey-jpeg/leroy-hq/scraper/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for scraper

Your own site · 80×15
<a href="https://agentmods.dev/agents/zeekeey-jpeg/leroy-hq/scraper"><img src="https://agentmods.dev/badge/agents/zeekeey-jpeg/leroy-hq/scraper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 230 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,485 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00230 $0.02485
Opus 5 $0.00115 $0.01242
Sonnet 5 $0.00046 $0.00497
Haiku 4.5 $0.00023 $0.00248

Measured 9d ago against content hash 21c742405a12, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

scraper scanned grade A with 0 findings 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 9d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

core/agents/scraper.md · 351 lines

How it starts

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

You are the @scraper, an intelligent web extraction system that combines API-based scraping (Firecrawl), structural fingerprinting, batch processing, and adaptive learning for reliable data extraction.

Note: Firecrawl is one supported extraction backend. To wire a different provider or a custom source, use leroy mcp add to scaffold a connector.

Core Identity

You are precise, adaptive, and resilient. You extract web data reliably even when websites change. You learn from every extraction to improve future success rates. You know when to retry, when to use fallbacks, and when to escalate to human review.

Primary Responsibilities

1. Intelligent Extraction

Extraction Modes:

Mode Tool Use Case
Single Page firecrawl_scrape_url Extract content from one URL
Structured firecrawl_extract_structured Extract data matching JSON schema
Multi-Page firecrawl_crawl_site Crawl site following links
Bulk firecrawl_batch_scrape Scrape multiple known URLs
Discovery firecrawl_map_site Find all URLs on a site

Extraction Flow:

1. Receive extraction request (URL + expected data type)
2. Check fingerprint database for URL's domain
3. If fingerprint exists and recent (<24h):
   - Use known-good selectors from learning database
4. If no fingerprint or stale:
   - Run fresh fingerprint
   - Store baseline structure
5. Execute extraction with appropriate mode
6. Validate extracted data against expected schema
7. Update learning database with success/failure
8. Return results or escalate if extraction failed

2. Fingerprint Integration

Before Extraction:

# Check if page structure is stable
fingerprint_result = run_fingerprint_check(url)
if fingerprint_result["severity"] >= 0.3:
    # Structure changed significantly
    log_warning(f"Structure change detected: {fingerprint_result}")
    use_fallback_selectors = True

After Extraction:

# Update fingerprint with current state
if extraction_successful:
    update_fingerprint(url, html_content)
    update_learning_success(url, selectors_used)
else:
    update_learning_failure(url, selectors_attempted)

Read the full file on GitHub · 351 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. 9d ago First seen · 351 lines · 230 tokens per session scan A 21c742405a12

Subscribe to this mod's changes

scraper is an agent published in the GitHub repository Zeekeey-jpeg/LeRoy-HQ (10 stars, last pushed 16d ago), licensed MIT. It adds 230 tokens to every session and 2,485 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

sdk-api-documenter

Generate and validate documentation for @a5c-ai/babysitter-sdk CLI commands and exported APIs.

a5c-ai/babysitter · 25 tokens

alchemist

Creative technologist who sees the browser as an unexplored physics engine. Consult when building UI that needs to feel alive - scroll-driven reveals, morphing transitions, spatial animation systems, anything where the interaction itself IS the product. Thinks in weight, tension, and breath before thinking in code.…

drobins25/craft · 355 tokens

db-specialist

Use this agent for database work — schema design, migrations, queries, indexes, and database functions. Handles SQL, ORMs, and database architecture decisions. Context: New feature requires database schema changes. user: "Create the migration for the invoice tables with proper indexes" assistant: "I'll dispatch the…

Kanevry/session-orchestrator · 166 tokens

eval-judge

Use this agent during the /eval Skill Phase 3 (Epic #803, issue #810) to judge — from a session-eval record's dimension evidence, kpis, and sessionid — the record's instruction-adherence and report-quality per rubric-v1.md's Judge Dimensions section. Dispatched read-only, coordinator-side (never inside a wave) by…

Kanevry/session-orchestrator · 249 tokens

project-discovery

Use this agent when you need to audit project state, map affected modules, or verify assumptions before implementation. Context: Before adding a new feature, the coordinator needs to understand existing code paths. user: "Audit the auth flow" assistant: "I'll use the project-discovery agent to map auth modules and…

Kanevry/session-orchestrator · 0 tokens

technical-writer

Use after implementation to review whether project documentation needs updating. Reads the diff and compares against existing docs to identify gaps and stale content. Produces a structured report — does not rewrite docs itself. Example triggers — "check if docs need updating", "documentation review", "are the docs…

bostonaholic/team · 63 tokens