scrape403

scrape403 is a command for Claude Code from Ertinox7711/SGRR-AGI-V2. It costs 49 tokens per session (618 once invoked), scanned A, original, MIT.

A web-scraping procedure for pages that return errors such as 403, 429, or 503, show empty content, or present an anti-bot challenge. It uses a logged-in browser when a session is required and Scrapling otherwise.

In plain words
What is it for?
Use it to retrieve public or session-protected pages, including pages guarded by Cloudflare, Akamai, or DataDome, and to extract their content with browser or Python-based tools. Web scraping means collecting information from web pages with software.
Why use it?
It provides a defined next step when ordinary tools such as curl, requests, or WebFetch cannot retrieve a page. It avoids wasting time on manual User-Agent changes that may not solve the block.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to retrieve public or session-protected pages, including pages guarded by Cloudflare, Akamai, or DataDome, and to extract their content with browser or Python-based tools. Web scraping means collecting information from web pages with software.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ertinox7711/sgrr-agi-v2/scrape403
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/Ertinox7711/SGRR-AGI-V2

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 scrape403

README.md
[![agentmods](https://agentmods.dev/badge/commands/ertinox7711/sgrr-agi-v2/scrape403/github.svg)](https://agentmods.dev/commands/ertinox7711/sgrr-agi-v2/scrape403)
Your own site
<a href="https://agentmods.dev/commands/ertinox7711/sgrr-agi-v2/scrape403"><img src="https://agentmods.dev/badge/commands/ertinox7711/sgrr-agi-v2/scrape403/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 scrape403

Your own site · 80×15
<a href="https://agentmods.dev/commands/ertinox7711/sgrr-agi-v2/scrape403"><img src="https://agentmods.dev/badge/commands/ertinox7711/sgrr-agi-v2/scrape403.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 618 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00049 $0.00618
Opus 5 $0.00024 $0.00309
Sonnet 5 $0.00010 $0.00124
Haiku 4.5 $0.00005 $0.00062

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

Security

Grade A, and why

scrape403 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.

Des qu'un `WebFetch`, un `curl`, un `https.get` Node ou un `requests` Python
commands/scrape403.md · 51 lines

What it actually says

Cible : $ARGUMENTS

Des qu'un WebFetch, un curl, un https.get Node ou un requests Python rend 403, 429, 503, une page vide ou un challenge, la reponse n'est pas « c'est bloque » : c'est de passer a l'outil suivant. Ne jamais abandonner sur un 403, ne jamais bricoler des User-Agent a la main.

L'ordre a suivre

  1. La page exige-t-elle une session connectee ? Alors ce n'est pas un probleme de bot-block : passe par hbrowse, qui pilote le Brave dedie ou les comptes sont deja ouverts. wsl -u YOU -- bash -lc 'hbrowse text "<url>"' (verbes : text info dom snapshot screenshot <out.png> click <sel> eval <js>. Un rc=3 veut dire URL interdite par la denylist — zone Shopify/OFM protegee — pas une panne.)
  2. Sinon, Scrapling. Ecris un fichier .py (jamais python -c : PowerShell mange les $ et les backticks), avec sys.stdout.reconfigure(encoding='utf-8') en tete, sinon UnicodeEncodeError cp1252 des le premier print.
from scrapling import StealthyFetcher, Fetcher

# 1er essai — Playwright stealth, passe les challenges JS Cloudflare
page = StealthyFetcher.fetch('https://cible.com', headless=True, network_idle=True)
html = page.html_content

# variante rapide — empreinte TLS Chrome (curl_cffi)
page = Fetcher.get('https://cible.com', impersonate='chrome')
html = page.html_content
  1. Installation si absent : pip install scrapling && scrapling install (telecharge un Chromium stealth, une seule fois).
  2. Dernier recours si Scrapling echoue aussi : MCP Playwright (browser_navigate + browser_evaluate pour extraire le DOM).

Apres coup

Ne memorise rien si c'etait un 403 ordinaire — le reflexe Scrapling est deja une regle globale. Ne note dans la memoire du projet que si ce domaine precis demande une astuce particuliere : cookie de session, en-tete maison, selecteur DOM non evident.

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 · 51 lines · 49 tokens per session scan A 9f64a0c1ea2f

Subscribe to this mod's changes

scrape403 is a command published in the GitHub repository Ertinox7711/SGRR-AGI-V2 (1 stars, last pushed 2d ago), licensed MIT. It adds 49 tokens to every session and 618 once invoked, about $0.0002 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-09-09.