skill-stealth-scraping
Skill0 starsChanged 3 months agoMITView on GitHub
Advanced anti-bot evasion, stealth web scraping, TLS/JA3/HTTP2 fingerprint management, browser automation (Playwright/Puppeteer), CAPTCHA handling, and reverse engineering internal private APIs. Use when collecting web data from protected platforms (Cloudflare, Akamai, DataDome, PerimeterX).
In this repository42 other files it gives its agents.
- AGENTS.mdAGENTS.md
- templates/AGENTS.mdAGENTS.md
- core/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- avoid-ai-writingSkill
- c-cpp-systemsSkill
- doubt-driven-developmentSkill
- marketing-copywritingSkill
- mempalace-recallSkill
- mempalaceSkill
- mempalace-taskSkill
- retro-emulation-engineeringSkill
- seo-optimization-and-auditSkill
- skill-ai-mlSkill
- skill-backend-architectSkill
- skill-codebase-onboardingSkill
- skill-code-reviewSkill
- skill-context-engineeringSkill
- skill-creative-designSkill
- skill-data-analysisSkill
- skill-data-scienceSkill
- skill-design-engineeringSkill
- skill-devops-cloudSkill
- skill-emulator-wasmSkill
- skill-frontend-architectSkill
- skill-graph-analyticsSkill
- skill-graphics-webglSkill
- skill-low-level-programmingSkill
- skill-master-orchestratorSkill
- skill-mcp-builderSkill
- skill-monorepo-architectSkill
- skill-osint-engineeringSkill
- skill-plugin-architectureSkill
- skill-qa-engineerSkill
- skill-researchSkill
- skill-resume-tailorSkill
- skill-system-diagnosticsSkill
- skill-web-architectureSkill
- skill-web-performanceSkill
- spec-driven-developmentSkill
- spec-minerSkill
- wasm-emscriptenSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Always choose the least detectable and most efficient extraction vector:
- Distinctive: line 48
When automating headless browsers or sending raw HTTP requests, verify the following:
- Very specific: line 51
navigator.webdriver: Must be overridden to false / undefined. - Very specific: line 59
Countermeasure: Use HTTP clients that support TLS fingerprint spoofing (e.g.
- Distinctive: line 62
Never click instantly on DOM coordinates without randomized delays.
- Very specific: line 63
Use Bezier curve mouse movements (playwright-extra or human motion generators).
- Distinctive: line 115
Never store or expose unencrypted session cookies containing sensitive private user sessions.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Stealth Web Scraping & Anti-Detection Skill
This skill defines protocols and technical countermeasures for extracting structured intelligence and data from websites protected by modern anti-bot and Web Application Firewall (WAF) systems.
1. Hierarchy of Data Extraction Techniques
Always choose the least detectable and most efficient extraction vector:
┌────────────────────────────────────────────────────────────────────────┐
│ Level 0: Agentic MCP Web Scrapers (Firecrawl MCP & Puppeteer MCP) │
│ - Firecrawl MCP for LLM-ready clean Markdown and automated bypass │
│ - Puppeteer MCP for direct DOM exploration and interactive sessions │
└───────────────────────────────────┬────────────────────────────────────┘
│ If complex auth or native API
▼
┌────────────────────────────────────────────────────────────────────────┐
│ Level 1: Reverse Engineering Private/Internal JSON APIs (Fastest, Best)│
│ - Inspect mobile app / Web SPA network requests │
│ - Replay HTTP requests with exact headers, cookies & TLS tokens │
└───────────────────────────────────┬────────────────────────────────────┘
│ If blocked / Signature required
▼
┌────────────────────────────────────────────────────────────────────────┐
│ Level 2: Headless Browser Automation with Stealth Patches │
│ - Playwright / Puppeteer with stealth patches & CDP evasions │
│ - Human mouse curves, scrolling, and random jitter │
└───────────────────────────────────┬────────────────────────────────────┘
│ If Cloudflare Turnstile / DataDome
▼
┌────────────────────────────────────────────────────────────────────────┐
│ Level 3: Residential Proxy Pools + Full Profile Emulation │
│ - Rotating residential IPs + realistic browser fingerprints │
└────────────────────────────────────────────────────────────────────────┘2. Anti-Detection Countermeasures Checklist
When automating headless browsers or sending raw HTTP requests, verify the following:
1. Browser Fingerprint Hardening:
navigator.webdriver: Must be overridden tofalse/undefined.chrome.runtime& Plugins: Emulate genuine Chrome plugin arrays.- WebGL / Canvas Fingerprints: Inject consistent WebGL vendor (
Google Inc. (NVIDIA)) and renderer strings. - AudioContext & Hardware Concurrency: Emulate realistic hardware concurrency (
8or16cores,8GBdevice memory). - Permissions API: Return
'prompt'or'granted'for notifications instead of anomalous undefined states.
2. Network & TLS Fingerprints (JA3 / JA4 / HTTP2):
- Standard Python
requestsorurllibemit a Python TLS fingerprint that is trivially blocked by Cloudflare. - Countermeasure: Use HTTP clients that support TLS fingerprint spoofing (e.g.
curl_cffi,tls-client, or real browser instances).
3. Human Behavioral Emulation:
- Never click instantly on DOM coordinates without randomized delays.
- Use Bezier curve mouse movements (
playwright-extraor human motion generators). - Introduce realistic keystroke jitter (50ms - 150ms per keypress) for input fields.
3. Playwright / Python Implementation Blueprint
from playwright.async_api import async_playwright
import asyncio
import random
async def launch_stealth_browser(headless: bool = True):
p = await async_playwright().start()
browser = await p.chromium.launch(
headless=headless,
args=[
"--disable-blink-features=AutomationControlled",
"--no-sandbox",
"--disable-infobars",
"--disable-dev-shm-usage",
"--disable-extensions",
]
)
context = await browser.new_context(
user_agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
viewport={"width": 1920, "height": 1080},
locale="en-US",
timezone_id="America/New_York",
)
# Evaluate evasions before any script runs
await context.add_init_script("""
Object.defineProperty(navigator, 'webdriver', { get: () => undefined });
window.chrome = { runtime: {} };
""")
page = await context.new_page()
return browser, page
async def human_type(page, selector: str, text: str):
await page.click(selector)
for char in text:
await page.type(selector, char, delay=random.randint(50, 180))4. Ethical & Safety Mandates
- Respect rate limits to prevent denial of service (DoS) on target servers.
- Never store or expose unencrypted session cookies containing sensitive private user sessions.
- Automatically delete ephemeral browser sessions and profiles upon completion.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

