You know how every scraping project starts.

You fire off a quick requests.get() and get slapped with a 403. You switch to a headless browser and stare at a "Just a moment..." screen. An hour later, after fighting selectors and headers, you realize the entire dataset was sitting inside a __NEXT_DATA__ JSON blob in the raw HTML the whole time.

I built scrapalyser to answer those questions in a single scan — before you write a line of scraping code.

v0.2.0 is now live on PyPI, and it's a major upgrade. Before releasing it, I tested it against ~30 real production websites protected by Cloudflare, Akamai, DataDome, PerimeterX, Kasada, Imperva, Sucuri, Fastly, AWS WAF, reCAPTCHA, and hCaptcha — with and without proxies — and rebuilt the core around what actually breaks in the wild.

👉 Repo: github.com/codesme34/scrapalyser · PyPI: pypi.org/project/scrapalyser

`## What one scan gives you

bash
pip install scrapalyser
playwright install chromium # once
scrapalyser https://example.com

`

In a few seconds, you get a full pre-scraping report:

`text
[ENGINES]
✅ curl_cffi : passes (200)
👉 Engine to use for this site : curl_cffi

[ANTI-BOT]
⚠️ Detected : Cloudflare, reCAPTCHA

[TECHNOLOGY]
🖥️ Type : Next.js

[JAVASCRIPT]
✅ JS required: No → curl_cffi is enough

[EMBEDDED DATA]
💡 Data readable directly, no page parsing needed
✅ JSON-LD (schema.org) → scripttype="application/ld+json" : ItemList, BreadcrumbList
✅ Next.js (NEXT_DATA) → script#NEXT_DATA (~930 KB)

[ROBOTS.TXT]
✅ Scanned page allowed for bots
⏱️ Crawl-delay: 5 s between requests
`

One command answers the five questions that decide your whole architecture:

  • 🛡️ What protects the site? 12+ antibots detected — and if it blocks you, why.
  • 🔁 Which tool do I need? Fast HTTP (curl_cffi) or a real browser (Playwright).
  • ⚡ Is JavaScript actually required? Or does the server already ship the full content.
  • 📦 Where is the data? Embedded JSON in the HTML, API endpoints, and verified sitemaps.
  • 🤖 What are the rules? robots.txt permissions, Crawl-delay, rate-limit headers, and login walls.

Real-world test: scanning 10 major websites

To put v0.2.0 through its paces, I ran a parallel batch scan on 10 large e-commerce, travel, and real-estate websites:

`python
import scrapalyser

urls = open("sites.txt").read().splitlines()
reports = scrapalyser.scan(urls, workers=4, save_dir="reports")
`

Here is what came back from a Playwright batch run across all 10 targets:

Site Result Antibots Detected Data Already in HTML
nike.com ✅ Passes Akamai JSON-LD, Next.js
adidas.fr ✅ Passes Akamai JSON-LD, Next.js, JSON script
walmart.com ✅ Passes PerimeterX, Akamai JSON-LD, Next.js
zillow.com ❌ Blocked (captcha, HTTP 200) PerimeterX, AWS WAF —
tripadvisor.fr ✅ Passes DataDome, AWS WAF JSON-LD
vinted.fr ✅ Passes Cloudflare JSON-LD, Next.js App Router
airfrance.fr ✅ Passes Akamai, reCAPTCHA JSON-LD, #server-app-state
homedepot.com ❌ Blocked (access_denied, HTTP 403) Akamai —
hyatt.com ❌ Blocked (js_challenge, HTTP 429) Kasada —
sucuri.net ✅ Passes Sucuri JSON-LD

What stands out from these results

  1. Every single target has an antibot — and 4 out of 10 stack two (typically a CDN/WAF combined with a dedicated bot manager or captcha).
  2. HTTP status codes lie. zillow.com returned 200 OK while serving a PerimeterX captcha. hyatt.com returned 429 — not a rate limit, but a Kasada JavaScript challenge. Checking status codes alone gives you false positives and false negatives.
  3. 7 out of 10 ship structured JSON straight inside the HTML. On those sites, you don't need fragile CSS selectors at all — grab the embedded JSON block and you're done.
  4. When you get blocked, you immediately know why — which tells you whether you need a residential proxy, a real browser, or a captcha solver instead of guessing.

⚠️ Important note on IP reputation: Every scan reflects how the site treats the IP that ran the scan (your home/office IP, VPN, datacenter, or proxy). More on how to test reliably below.

What's new in v0.2.0

1. Automatic engine fallback (engine="auto")

engine="auto" is now the default:

  1. curl_cffi runs first — fast, with a real Chrome TLS fingerprint.
  2. If an antibot blocks it, Playwright (real Chromium) automatically takes over.
  3. Whichever engine gets through produces the report, and the attempts field tells you what each engine hit and which one to use in your scraper.

Playwright also runs as a visible browser (headless=False) by default now. Headless Chromium exposes missing plugins and software rendering, which antibots flag immediately. It also preserves the real browser User-Agent instead of injecting a fake one that contradicts the TLS/JS fingerprint. On a headless server, just pass headless=True.

2. Actionable blocking diagnosis

When every engine gets blocked, v0.2.0 doesn't just say "blocked" — it tells you why and includes details like the Cloudflare error code and Ray ID:

json
"blocking": {
"reason": "ip_banned",
"code": "1006",
"ray_id": "a5f6f386fedaef9a-MRS"
}

Reason Typical trigger What to try next
ip_banned Cloudflare 1005–1008 Switch IP (residential proxy) — changing browser won't help
country_blocked Cloudflare 1009 Use an IP in the site's target country
browser_signature Cloudflare 1010 Real browser or different TLS fingerprint
firewall_rule Cloudflare 1012 / 1020, AWS WAF Real browser, then another IP
rate_limited HTTP 429, Cloudflare 1015 Slow down and rotate IPs
js_challenge Cloudflare challenge, Kasada Real browser (Playwright)
captcha Turnstile, DataDome, PerimeterX, reCAPTCHA, hCaptcha Real browser + captcha solver
access_denied Generic block Real browser, then another IP

This single feature has saved me hours of debugging browser stealth tweaks when the real issue was simply a flagged IP.

3. Embedded data detection (embedded_data)

Modern frameworks often serialize the entire page state into <script> tags. scrapalyser now detects:

  • __NEXT_DATA__ and Next.js App Router payloads
  • Nuxt state
  • JSON-LD (schema.org) including detected schema types (Product, ItemList, BreadcrumbList…)
  • window.__INITIAL_STATE__, Apollo, Remix, and inline JSON scripts

For every source found, the report gives you the exact CSS selector and payload size.

4. Multi-site parallel scanning

Pass a list of URLs directly to scan() and control concurrency with workers:

python
reports = scrapalyser.scan(
["https://site1.com", "https://site2.com", "https://site3.com"],
workers=4,
save_dir="reports",
)

  • Reports come back in the exact order of your input URLs.
  • One failing site never crashes the batch — it returns {"url": ..., "error": ...} while the others continue.
  • scrapalyser.scan_many() is also available if you prefer an explicit function name.

5. First-class proxy support

Write your proxy once, and scrapalyser converts and applies it to both engines (curl_cffi and Playwright) as well as the robots.txt and sitemap requests:

`python
import os
import scrapalyser

report = scrapalyser.scan("https://example.com", proxy=os.environ["PROXY"])
`

  • Supports the messy formats proxy providers actually hand out (http://USER:PASS@HOST:PORT, USER:PASS@HOST:PORT, HOST:PORT:USER:PASS, USER:PASS:HOST:PORT, HOST:PORT).
  • Reads SCRAPALYSER_PROXY automatically from the CLI so credentials stay out of your shell history.
  • Privacy by default: credentials never appear in reports or error messages (only http://HOST:PORT).

6. Rules, sitemaps, rate limits, and smarter login detection

  • robots.txt: checks whether the specific scanned URL is allowed and extracts Crawl-delay.
  • All sitemaps: parses every sitemap declared in robots.txt (sitemap.urls) and verifies that each one actually responds.
  • Rate-limit headers: extracts Retry-After, X-RateLimit-*, and RateLimit-*.
  • Login wall: now distinguishes between a required login (login_wall.detected) and an optional login button/OAuth (login_wall.login_available).

7. Brand-new CLI & multilingual reports

bash
scrapalyser https://example.com
scrapalyser https://example.com --json
scrapalyser https://example.com --lang fr # en, fr, es, br
scrapalyser https://site1.com https://site2.com --workers 4 --save-dir reports

(python -m scrapalyser ... works as well.)

8. Major accuracy & reliability fixes

Testing on ~30 real protected sites surfaced a ton of edge cases that are now fixed:

  • New antibots & sharper signatures: added Fastly and AWS WAF / CloudFront, plus improved Akamai, Kasada, Imperva, and reCAPTCHA detection. antibot.all lists every stacked protection.
  • Block pages served with HTTP 200 (like Akamai "Reference #...") are now caught properly.
  • Server-rendered Next.js / Nuxt pages are no longer falsely flagged as requiring JavaScript (js_required is measured on raw server HTML for both engines).
  • No more third-party cookie leakage in Playwright (ad/widget cookies were previously misattributed as the target site's antibot).
  • Self-reloading challenge pages in Playwright no longer crash — scrapalyser waits cleanly for the post-challenge page.
  • 116 offline pytest tests added (pip install -e ".[dev]" && pytest).

Upgrading from v0.1.x? Note three default changes:

  1. engine now defaults to "auto" (pass engine="curl" for the old behavior).
  2. Playwright is now a required dependency (run playwright install chromium once) and defaults to headless=False.
  3. login_wall.detected now only triggers when login is required (optional logins moved to login_wall.login_available).

Full details in the CHANGELOG.md.

Use it programmatically in your pipelines

Because scan() returns a clean dictionary by default, you can automatically pick your scraping strategy before running a job:

`python
import scrapalyser

report = scrapalyser.scan(url)

if report["blocking"]:
print("Blocked:", report["blocking"]["reason"])
elif report["embedded_data"]["detected"]:
source = report["embedded_data"]["sources"][0]
print(f"Skip HTML parsing — read {source['type']} via {source['selector']}")
else:
print(f"Use {report['engine']} (JS required: {report['js_required']})")
`

Pro tip: always account for your IP

Antibots score your IP just as heavily as your request headers or browser fingerprint. Shared networks, VPNs, cloud IPs, or previously flagged residential IPs can trigger blocks that another IP won't see.

Before committing to a scraper architecture:

  1. Run 2–3 scans without a proxy (spaced out a bit).
  2. Run 2–3 scans with a proxy.
  3. Compare: identical results mean a consistent site rule; fluctuating results mean IP-level scoring — plan for proxy rotation and retries from day one.

What's coming next

Here is what's on the roadmap for the next release:

  • Filtering analytics/ad trackers out of Playwright's detected API list so only real site APIs remain
  • GraphQL endpoint detection
  • Pagination detection (?page=2, rel="next", infinite scroll)
  • Proxy list support with automatic rotation/fallback

Try it & let me know what breaks

scrapalyser is MIT-licensed and open source. If you build scrapers, data pipelines, or automation tools, give v0.2.0 a spin and tell me how it behaves on your toughest targets!

What's the nastiest antibot or weirdest block page you've run into recently? Drop it in the comments — I'd love to test scrapalyser against it and keep improving detection.

Please scrape responsibly: check the robots.txt section of your report, respect crawl delays, and follow each site's terms of service.