Skip to content

About

How well content extractors recover a page, by page type: 1,497 labelled pages, seven extractors

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Extraction benchmark

Full report and charts: https://hydrafetch.com/reports/extraction-benchmark/

How well seven content extractors recover the main content of a page, broken out by what kind of page it is.

Baselines measured August 23rd 2026 and our column measured again November 17th 2026, over the WCXB dev split.

The ranking is the least interesting part. On articles the seven extractors are separated by 0.109. On service pages they are separated by 0.517, more than four times as far apart. Articles are 53% of this corpus and the overwhelming majority of most extraction benchmarks, so a single overall score is mostly a score on the easy case. The same tool that keeps 82.4% of an article keeps 31.4% of a service page.

Scored over 1,497 labelled pages across 1,296 domains and seven page types, using the WCXB corpus and its own word-level F1 metric.

Overall

extractor word-level F1
rs-trafilatura 0.8471
Hydrafetch 0.8382
trafilatura 0.8134
trafilatura (recall) 0.7884
resiliparse 0.7711
jusText 0.6907
readability 0.6168

A fair ranking and a misleading summary, for the reason in the next table.

By page type

Sorted by how far apart the extractors are. The last column is the gap between best and worst.

page type n Hydrafetch rs-trafilatura trafilatura (recall) trafilatura resiliparse jusText readability spread
article 793 0.9292 0.9336 0.9247 0.9284 0.8582 0.8471 0.8243 0.109
documentation 91 0.9212 0.9385 0.9160 0.9153 0.8981 0.6840 0.7858 0.255
product 119 0.5710 0.6355 0.5549 0.6186 0.5302 0.4488 0.3507 0.285
forum 113 0.6972 0.7596 0.5416 0.6900 0.7128 0.6775 0.4170 0.343
collection 117 0.6807 0.6719 0.5331 0.5636 0.5364 0.3431 0.2944 0.386
listing 99 0.7133 0.6686 0.5533 0.5590 0.5753 0.3392 0.2329 0.480
service 165 0.8312 0.8247 0.7227 0.7593 0.7798 0.5834 0.3139 0.517

Page types are the corpus's own labels: article (news, blogs, long-form prose), documentation (reference and API docs), service (marketing and product pages), forum (threaded discussion), listing (search results, indexes, category pages), collection (hubs linking to other pages), product (e-commerce detail pages).

Credit where it is due

The observation is not ours. WCXB's authors built the corpus precisely because article-only benchmarks hide this, and their README says so: extractors converge within a few points on articles and diverge by twenty to thirty elsewhere. What is ours is this particular measurement, over these seven extractors, with our own included and scored the same way.

Reproducing it

git clone https://github.com/Murrough-Foley/web-content-extraction-benchmark.git wcxb
pip install trafilatura==2.2.0 resiliparse==1.0.9 justext==3.0.2 readability-lxml==0.8.4.1 lxml
python reproduce.py --split dev

The clone is around 300 MB. The corpus ships its saved HTML, so every run is deterministic, touches no network and involves no model. Nothing is sampled or dropped: every extractor sees every page.

Baselines ran at their defaults on the versions current when they ran: trafilatura 2.2.0, resiliparse 1.0.9, jusText 3.0.2, readability 0.8.4.1. Pin those to get the numbers above. A baseline that quietly ages is the easiest way for a benchmark to flatter whoever published it, and it happened to this one: our first cut scored trafilatura on a build ten weeks older than our own and understated it by 3.8 points.

What you can and cannot reproduce here

The five open baselines: fully. reproduce.py runs them at their published defaults and scores them with the corpus's own metric. You should get the numbers above, exactly.

rs-trafilatura: no. It is a separately built Rust binary and its source no longer resolves, so we cannot tell you how to rerun that column, and we could not pin the version we measured. It is in the table anyway, because naming the leader in a footnote while cropping it out of the chart is worse than either honest option. Treat it as the softest number here: WCXB's published leaderboard puts it at 0.859 on this split, a little above the 0.8471 we measured.

Our column: not from this repo. Our API takes a URL and fetches the page itself, and this corpus is saved HTML, so there is no way to hand it the corpus. We score our column in process, against the same labels, with the same metric, over the same files.

So our row is the one you cannot check by rerunning this script. You can check it a different way: pick pages of your own, run our API and any baseline here against them, and compare. That is a weaker guarantee, and we would rather say so than imply otherwise.

Limits

This is one benchmark. A corpus that is half articles flatters tools tuned for articles, and every number here is a property of these pages rather than of the web.

We place second overall, behind rs-trafilatura, and score highest on collection, listing and service pages, three of the seven page types. We publish the whole table because a benchmark cropped at its author's own row is an advert. Word-level F1 rewards recovering the right words and is blind to whether the structure survived. An extractor that returns a table as a run-on paragraph can still score well.

And if the pages you care about are articles and documentation, any of these will serve you. The difference this measures is a difference on everything else.

We build a web data API and one of these columns is ours.

Licence

This repo is MIT. The WCXB corpus is by Murrough Foley, released under CC-BY-4.0, and lives at https://github.com/Murrough-Foley/web-content-extraction-benchmark.

About

How well content extractors recover a page, by page type: 1,497 labelled pages, seven extractors

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages