Your scraper didn't fail. It succeeded at saving a captcha.
falseok tells you when a scraped page that came back 200 OK is really a block, a login wall or an empty shell,
and when today's dataset quietly broke.
pip install falseok
falseok page product.html --status 200
falseok data today.json --vs yesterday.json
Pure Python, zero dependencies, works with whatever fetches your pages. It recognises blocks. It never tries to get around them.
Twelve tools, the same saved pages
5,071 pages from sites sampled automatically in 38 languages, fetched once, code frozen before any page was read or any tool was run. Every tool judged the same bytes, with the status code and the response headers. 5,067 pages got a label: 3,494 real, 588 anti-bot blocks, 646 other refusals, 339 empty. 444 of the 1,573 unusable pages came back without an error status; the table calls them "200 OK". A wrong verdict is an unusable page let through or a real page flagged, out of all 5,067.
| tool | wrong verdicts | blocks caught | unusable "200 OK" caught | real pages flagged | other refusals caught | empty pages caught | ms per page |
|---|---|---|---|---|---|---|---|
| falseok | 2.5% | 98.5% | 76.6% | 0.7% | 95.0% | 81.4% | 1.91 |
| Built for the same job | |||||||
| a Rust scraper's anti-bot classifier | 15.2% | 91.5% | 45.0% | 0.1% | 14.4% | 52.2% | 1.72 |
| the blocked-page detector of a popular Python crawler | 15.3% | 91.7% | 45.3% | 0.2% | 14.1% | 52.2% | 3.19 |
| a new Python response classifier | 22.2% | 61.9% | 21.6% | 0.3% | 1.1% | 25.7% | 57.3 |
| the most used anti-bot detector, JavaScript | 23.0% | 65.6% | 5.6% | 0.0% | 0.5% | 5.9% | 2.54 |
| a Rust challenge detector | 34.3% | 58.5% | 12.4% | 18.3% | 13.8% | 13.0% | 0.21 |
| Rules inside scraping frameworks | |||||||
| the ban rule of the most used proxy-rotation add-on | 8.2% | 94.0% | 6.1% | 0.0% | 89.6% | 7.1% | 0.14 |
| the blocked-request rule of a major crawling framework | 20.2% | 90.1% | 0.2% | 0.0% | 3.3% | 0.0% | 25.5 |
| the challenge checks of the most used Cloudflare library | 31.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% | 0.02 |
| One-line checks | |||||||
| status-code check (4xx/5xx = bad) | 8.8% | 93.5% | 0.0% | 0.0% | 89.6% | 0.0% | <0.01 |
| page-size check (under 10 KB = bad) | 13.3% | 89.1% | 56.1% | 1.1% | 34.5% | 57.2% | <0.01 |
| keyword search (captcha, blocked, access denied...) | 63.0% | 84.4% | 49.1% | 76.1% | 58.2% | 50.1% | 3.06 |
falseok gave a wrong verdict on 2.5% of the labelled pages; the next best tool, the ban rule of the most used proxy-rotation add-on, on 8.2%: 3.3 times fewer wrong verdicts. Bold is the best value in a column. The one-line checks are the fastest because they read almost nothing: a status code, a length.
Some of these tools were built for a narrower job (only Cloudflare challenges, only status codes, only anti-bot vendors); the benchmark quotes what each one claims to catch, with 95% confidence intervals.
"Other refusals" are pages not found, server errors, login-only pages and the like. Most of them carry an error status, which is why a plain status check does well there (89.6%) and catches no empty page at all.
Where falseok loses: real pages flagged. It flagged 24 of 3,494 real pages (0.7%). Three tools flagged none, two more flagged a single page. Of the 24: 14 were called empty (real pages with very little text, among them a few search pages with no results), 3 were pages that are a login form, 6 were called a captcha or a challenge, and 1 was a real page its server sent with status 503. The tools with zero false alarms judge only the status code or a few known signatures, or decline to judge many pages, and they catch 0 to 25 of the 444 unusable pages that came back without an error status; falseok caught 340.
What it missed: 9 of the 588 blocks, all served with status 200.
Speed: about 1.3 times faster than the most used JavaScript detector, level with the Rust classifier, about 30.0 times faster than the new Python classifier. The quickest checks (the Rust challenge detector, the proxy add-on's ban rule, the Cloudflare checks, status code, page size) are faster still, because they read almost nothing or stop at the first match. Next to a download of 500 ms or more, under 2 ms is noise.
More than a block detector
- Page not found: 529 of 529 pages that came back
404or410with the status given, and 408 of 529 from the page alone, when your scraper didn't keep the status. - Empty shells: 276 of 339 pages that loaded a menu and a footer and nothing else.
- Response headers: pass them (
--headers, orheaders=in Python) and it reads the anti-bot service's own block marker and names the vendor (4 services so far). - 44 languages: "page not found", "access denied" and the other wording sites write themselves, each phrase taken from a page that really came back.
- Datasets: on four real scraped datasets, it caught 1,020 of 1,020 deliberately broken days (lost rows, emptied or vanished fields, frozen values, type changes, duplicates, block pages saved as rows) and stayed quiet on 200 of 200 healthy ones. A row-count alert, what most pipelines have, caught 240.
Three things we learned the hard way:
- Status codes lie. 444 of the 1573 unusable pages in the benchmark came back without an error status. A status check calls all of them a success.
- Grepping for "captcha" flags 76% of real pages (2660 of 3494). Anti-bot scripts, signup captchas and cookie banners load on normal pages too.
- Block pages are short. Real pages aren't. The block pages we measured carry 0 to ~2,000 characters of visible text. That one fact does most of the work, and it is also where falseok's few false alarms come from.
Check pages
falseok page product.html
falseok page pages/*.html --status 200
falseok page page.html --headers headers.txt # the response headers, as `curl -D headers.txt` saves them
falseok page page.html --json
The verdicts as text
| verdict | what it means |
|---|---|
ok |
no block signal found |
not_html |
binary or compressed data, not a page |
challenge |
an anti-bot check page (the vendor is named when the HTML shows it) |
captcha |
a captcha in place of the content |
rate_limited |
"too many requests", or HTTP 429 |
login_wall |
you need to sign in to see this |
consent_wall |
a consent page in place of the content |
soft_block |
"access denied", "continue shopping", "something went wrong" served as 200 |
soft_404 |
200, but the page says it does not exist |
empty_shell |
empty response, a saved redirect, or a JavaScript app that never rendered |
http_error |
you passed --status 4xx/5xx and no other signal was found |
Check data
falseok data today.json --vs yesterday.json
Reads JSON, JSON Lines, CSV and TSV, including what Excel saves on Windows and European semicolon CSVs. Finds lost
rows, fields that went empty, disappeared or froze on one value, changed types, duplicates, and block-page text that
got parsed as data. Without --vs it checks the file on its own.
In a cron job or CI
Exit code 0 = fine, 1 = something is wrong, 2 = the input could not be read.
falseok data out/today.jsonl --vs out/last_good.jsonl && cp out/today.jsonl out/last_good.jsonl
From Python
import falseok
r = falseok.check_page(html, status=200) # html can be text or the raw bytes you received
r = falseok.check_page(resp.content, status=resp.status_code, headers=resp.headers) # headers are optional
if not r.ok:
print(r.verdict, r.reason) # captcha robot-check-title (title: "Robot Check")
report = falseok.compare(rows_today, rows_yesterday)
for issue in report.issues:
print(issue.kind, issue.message)
How hard we tried to break it
- A stress suite written to break it: random bytes, 50 MB pages, unclosed tags, every rule's wording hidden in long real pages, Excel CSVs, JSON nested three levels down, a million rows. The first run found 107 failures. All fixed, all still in the suite, which now holds 1,875 tests.
- 140,000 random inputs from property-based testing. Nothing broke.
- Three fresh sets of pages from sites it had never seen. The first two showed misses we then fixed, so we don't quote them as proof; the third is the benchmark above, scored with the code frozen.
- Linux, macOS and Windows, Python 3.10 to 3.14, on every change.
The whole story, failures included: docs/testing.md.
Where the signatures come from
Every rule lives in one file, src/falseok/signatures.json: a pattern, where to
look (title, visible text or raw HTML), and the category. They come from block pages our own production scrapers
received with 200 OK, and from the live tests above. The test pages in tests/pages are rebuilt
from those cases with identifiers removed.
Seen a block page falseok missed? Send one entry in signatures.json and a small cleaned page in tests/pages.
That's the whole contribution: docs/contributing.md.
Documentation
Benchmark · How it works · Verdicts · Data checks · Signatures · Testing · Known limits · Contributing
License
MIT. Made by Benchmarked: we measure data tools against the most used alternatives on price, speed and output.
Metadata
Release files for falseok 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| falseok-0.2.0.tar.gz | 50.3 kB | With provenance | Details for falseok-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| falseok-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for falseok-0.2.0-py3-none-any.whl |
Total release size: 85.5 kB
Release files / falseok-0.2.0.tar.gz
| Download URL | falseok-0.2.0.tar.gz |
|---|---|
| Size | 50.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a1c706404564860f1ab938066acc99497df0217b488e2c6d9eaca60e27b65c5d
|
|
BLAKE2b-256 checksum How to use checksums |
e6752421d1edf61e7500ebed7591d72fedeab4aea66953dbbf91ebcb586b8a0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logRelease files / falseok-0.2.0-py3-none-any.whl
| Download URL | falseok-0.2.0-py3-none-any.whl |
|---|---|
| Size | 35.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e9dfdb7fd733ccfb5745eed035e672c527b25826305f12676facddbbbb7859c
|
|
BLAKE2b-256 checksum How to use checksums |
836a2784c0217e3bb27af34883b086778b51dba254402f4fb1a16a4512f85834
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logSecurity for falseok 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for falseok-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.