stealth-scraping

stealth-scraping is a skill for Claude Code, Codex from DekryptLabs/dlbrowser. It costs 80 tokens per session (5,443 once invoked), scanned A, original, MIT.

A set of Python techniques for collecting data from websites that try to detect automated visitors. It covers browser-like connections, stealth browser settings, block detection, and finding information through several sources.

In plain words
What is it for?
Use it when building Python scrapers that need to access protected websites, rotate request details, detect blocking, or combine RSS feeds and search engines.
Why use it?
It helps scrapers handle anti-bot systems such as Cloudflare and DataDome, while reducing false alarms caused by ordinary page scripts and styles.

Skill for Claude CodeCodex

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

Good fit Use it when building Python scrapers that need to access protected websites, rotate request details, detect blocking, or combine RSS feeds and search engines.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dekryptlabs/dlbrowser/stealth-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 DekryptLabs/dlbrowser --skill stealth-scraping
Clone the repo
git clone --depth 1 https://github.com/DekryptLabs/dlbrowser

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 stealth-scraping

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dekryptlabs/dlbrowser/stealth-scraping"><img src="https://agentmods.dev/badge/skills/dekryptlabs/dlbrowser/stealth-scraping.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,443 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.00080 $0.05443
Opus 5.5 $0.00032 $0.02177
Sonnet 5.5 $0.00016 $0.01089
Haiku 4.5 $0.00008 $0.00544

Measured 2mo ago against content hash bc7708c0484c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

stealth-scraping 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 2mo 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.

skills/stealth-scraping/SKILL.md · 489 lines

How it starts

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

Stealth Scraping Patterns

curl_cffi — TLS Fingerprint Impersonation

curl_cffi impersonates Chrome's exact TLS ClientHello bytes. Most WAFs that reject httpx/requests accept curl_cffi transparently.

from curl_cffi import requests as curl_requests

# Correct: proxy=URL (singular string), impersonate=specific version
session = curl_requests.AsyncSession(
    impersonate="chrome131",  # Use: chrome120, chrome124, chrome131 (NOT chrome133 — unsupported)
    proxy=PROXY_URL,          # Singular string, NOT a dict
    timeout=20.0,
)

Common mistake: proxies={"http": url, "https": url} — WRONG. Use proxy=url (singular). Common mistake: impersonate="chrome133" — NOT supported by curl_cffi. Use chrome120, chrome124, or chrome131.

playwright-stealth — Correct API

from playwright.async_api import async_playwright
from playwright_stealth import Stealth

stealth = Stealth()
# ... create context ...
await stealth.apply_stealth_async(context)

NOT from playwright_stealth import stealth_async — that import doesn't exist.

Block Detection Heuristics

CRITICAL: Strip <script> and <style> tags BEFORE checking block patterns. Many legitimate news sites embed reCAPTCHA/Cloudflare JavaScript that contains strings like "captcha", "recaptcha", "challenge-platform" — these are false positives, not actual blocks.

import re

# Patterns that indicate REAL block pages (after JS/CSS stripping)
BLOCK_PATTERNS = [
    "access denied",
    "verify you are human",
    "enable javascript and cookies",
    "theme-beta",
    "rate limited",
    "too many requests",
    "just a moment",
    "cf-browser-verification",
    "enable javascript to run this app",
    "bot detection",
    "automated access",
    "your request originates from an undeclared automated tool",
    "please verify you are a human",
    "security check",
    "ddos protection",
]

# Context-dependent: only match on short pages (<2000 chars)
CONTEXT_BLOCK_PATTERNS = ["blocked", "robot"]

def _is_blocked(text: str) -> bool:
    if not text:
        return True
    # STRIP JS/CSS FIRST — this is the #1 fix for false positives
    cleaned = re.sub(r'<script[^>]*>.*?</script>', '', text, flags=re.DOTALL | re.IGNORECASE)
    cleaned = re.sub(r'<style[^>]*>.*?</style>', '', cleaned, flags=re.DOTALL | re.IGNORECASE)
    cleaned_lower = cleaned.lower()
    for pattern in BLOCK_PATTERNS:
        if pattern in cleaned_lower:
            return True
    if len(text) < 2000:
        visible_text = re.sub(r'<[^>]+>', '', cleaned).lower()
        visible_text = re.sub(r'\s+', ' ', visible_text).strip()
        for pattern in CONTEXT_BLOCK_PATTERNS:
            if pattern in visible_text:
                return True
    if len(text) < 500:
        stripped = re.sub(r'<[^>]+>', '', text)
        stripped = re.sub(r'[{};:.\\-_=+#/\\|@!~*()\[\]"\'<>,0-9\\s]', '', stripped)
        if len(stripped) < 50:
            return True
    return False

Read the full file on GitHub · 489 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. 2mo ago First seen · 489 lines · 80 tokens per session scan A bc7708c0484c

Subscribe to this mod's changes

stealth-scraping is a skill published in the GitHub repository DekryptLabs/dlbrowser (1 stars, last pushed 3mo ago), licensed MIT. It adds 80 tokens to every session and 5,443 once invoked, about $0.0003 per session on Opus 5.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

stealth-scraping compared with skills from other repositories

stealth-scraping next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
stealth-scrapingDekryptLabs/dlbrowserSkill13mo agoMITA80Claude Code, Codex
x402browser-use/browser-useSkill120kyesterdayMITA175Claude Code
browser-usebrowser-use/browser-useSkill120kyesterdayMITA57Claude Code, Codex
remote-browserbrowser-use/browser-useSkill120kyesterdayMITA22Claude Code
cloudbrowser-use/browser-useSkill120kyesterdayMITA177Claude Code
Agent Browser AutomationPramodDutta/qaskillsSkill2454d agoMITA37Claude Code, Codex
Browser-Use AutomationPramodDutta/qaskillsSkill2454d agoMITB38Claude Code, Codex