anti-bot-scraping

anti-bot-scraping is a skill for Claude Code, Codex from thirdwatch-dev/scraping-skills. It costs 216 tokens per session (2,376 once invoked), scanned A, original, MIT.

A guide to diagnosing and handling anti-bot protection, the automated checks websites use to distinguish people from scrapers. It covers errors and challenges from services such as Cloudflare, DataDome, Akamai, and PerimeterX when reading publicly accessible data you are allowed to access.

In plain words
What is it for?
Use it to investigate 403 errors, CAPTCHAs, JavaScript challenges, IP bans, and empty pages, then select an appropriate next step for an authorized scraper.
Why use it?
It helps distinguish a temporary network failure from a genuine block, so you can retry, slow down, or choose a more suitable browser or connection method.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to investigate 403 errors, CAPTCHAs, JavaScript challenges, IP bans, and empty pages, then select an appropriate next step for an authorized scraper.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thirdwatch-dev/scraping-skills/anti-bot-scraping
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.

Any agent
npx skills add thirdwatch-dev/scraping-skills --skill anti-bot-scraping
Clone the repo
git clone --depth 1 https://github.com/thirdwatch-dev/scraping-skills

Made for: Claude Code, Codex.

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 anti-bot-scraping

README.md
[![agentmods](https://agentmods.dev/badge/skills/thirdwatch-dev/scraping-skills/anti-bot-scraping/github.svg)](https://agentmods.dev/skills/thirdwatch-dev/scraping-skills/anti-bot-scraping)
Your own site
<a href="https://agentmods.dev/skills/thirdwatch-dev/scraping-skills/anti-bot-scraping"><img src="https://agentmods.dev/badge/skills/thirdwatch-dev/scraping-skills/anti-bot-scraping/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 anti-bot-scraping

Your own site · 80×15
<a href="https://agentmods.dev/skills/thirdwatch-dev/scraping-skills/anti-bot-scraping"><img src="https://agentmods.dev/badge/skills/thirdwatch-dev/scraping-skills/anti-bot-scraping.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 216 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,376 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.00216 $0.02376
Opus 5 $0.00108 $0.01188
Sonnet 5 $0.00043 $0.00475
Haiku 4.5 $0.00022 $0.00238

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

Security

Grade A, and why

anti-bot-scraping 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 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.

Makes network callslowCapability

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

data = await page.evaluate("""async (u) => (await fetch(u)).json()""", api_url)
skills/anti-bot-scraping/SKILL.md · 130 lines

How it starts

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

Anti-Bot Scraping

How to get past anti-bot protection when a site blocks your scraper. Diagnose first, then climb the cheapest-first ladder — most "blocks" are solved without a browser.

Bypass anti-bot only to reach publicly accessible data you're authorized to read. Don't use these techniques to evade logins, paywalls, or access controls.

Step 1 — Diagnose: transient failure or real block?

Don't escalate to a browser on a flaky network error. Look at what you actually got back:

Signal Likely cause Action
Proxy 590 / UPSTREAM504, connection reset, timeout Transient proxy/CONNECT failure Retry with a fresh proxy IP. Not a block.
Intermittent 503, then works Rate limit / load Backoff, slow down.
Consistent 403 on first request TLS/fingerprint block Escalate one rung (TLS spoof).
<title>Just a moment...</title>, Turnstile widget Cloudflare JS challenge Stealth browser + Turnstile click.
DataDome/PerimeterX/Akamai CAPTCHA or interstitial Cookie/JS challenge Stealth browser + homepage warmup.
200 OK but body is a tiny shell with no data Client-side render or cookie-gated SSR Warmup, or intercept the XHR.

Collapsing to the 6×-cost browser tier on a transient 504 is the most common waste. Confirm the failure is consistent before escalating.

Step 2 — Climb the technique ladder (cheapest first)

Each rung costs roughly 5–50× more than the one below. Stop at the first that works.

Rung 1 — Plain HTTP

httpx / requests. Works for APIs, RSS, JSON-LD, and server-rendered HTML. Near-zero cost, no proxy needed for most. Always your first attempt.

Rung 2 — HTTP + TLS fingerprint spoof

Many sites 403 your request before you send a single byte of HTML — they reject the TLS/JA3 fingerprint of a Python client. Spoof Chrome's TLS handshake at the socket level with no browser:

from impit import AsyncClient
client = AsyncClient(browser="chrome")          # note: proxy= , not proxy_url=
resp = await client.get(url)

Read the full file on GitHub · 130 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 · 130 lines · 216 tokens per session scan A 4d4aada2c69a

Subscribe to this mod's changes

anti-bot-scraping is a skill published in the GitHub repository thirdwatch-dev/scraping-skills (3 stars, last pushed 2mo ago), licensed MIT. It adds 216 tokens to every session and 2,376 once invoked, about $0.0011 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.

Related

Other skills, from other repositories

scraper-brief

Writes a clear, technical brief describing exactly what data needs to be collected from a website or set of web pages, how it should be structured, and what edge cases and legal/ethical considerations apply — for handoff to a developer or data team.

ur-grue/autopunk-media-skills · 55 tokens

tinyfish-integration

Integrate TinyFish web toolkit (search, fetch, browser automation) into Hermes Agent.

kevinnft/ai-agent-skills · 22 tokens

mk:playwright-cli

Session-persistent browser automation via Playwright CLI — form filling, screenshots, data extraction, multi-step flows. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information across multiple requests. NOT for AI-driven…

ngocsangyem/MeowKit · 92 tokens

cloud-browser-automation

Use cloud browser services (Browserbase) for Cloudflare bypass, JavaScript rendering, and stealth scraping when local tools fail.

kevinnft/ai-agent-skills · 29 tokens

web-scraping

This skill activates for web scraping and Actor development. It proactively discovers APIs via traffic interception, recommends optimal strategy (traffic interception/sitemap/API/DOM scraping/hybrid), and implements iteratively. For production, it guides TypeScript Actor creation via Apify CLI.

yfe404/web-scraper · 57 tokens

firecrawl

Web scraping and crawling for AI agents via Firecrawl MCP. Scrape URLs to markdown, crawl websites, search the web, and extract structured data. Supports cloud API and self-hosted deployments including CRW (Rust alternative).

elasticdotventures/_b00t_ · 49 tokens