Resources

Scraping at Scale: Quantifying Friction and Engineering Around It

Scraping at Scale: Quantifying Friction and Engineering Around It

Scraping at scale is limited less by the tool you choose than by a handful of measurable constraints: how much data each request moves, how often sites block you, how stable your parsers stay when pages change, and how many requests fail for plain network reasons. Treat these as numbers you track, and cost per successful record becomes something you can plan and lower. The figures below are widely cited estimates (from sources such as Imperva, HTTP Archive, W3Techs and Google’s IPv6 statistics), so check current values before building a budget on them.

Why is scraping at scale so hard?

Because you are not alone and the web is built to resist automation. Roughly half of all internet traffic comes from bots, so anti-automation systems are tuned to treat anything bot-like with suspicion. If your timing, headers and navigation look like the average bot, you start every session on the wrong side of those risk checks. Baseline realism, meaning requests that behave like a real browser session, matters before a single page is parsed.

The infrastructure of the web adds more friction:

  • More than 95% of page loads happen over HTTPS, so every new connection needs a TLS handshake. That costs CPU and round trips, and the cost grows with request volume.
  • Around 45% of users are reachable over IPv6, and some sites are served better on IPv6-first networks. A crawler that only speaks IPv4 will miss part of the web.
  • About one in five websites sits behind a reverse proxy service such as Cloudflare, which means rate limits and challenge pages are normal, not rare.

A crawler built for plain HTTP, IPv4 and one fixed TLS profile will fall over quickly. Build for the web as it is.

How does page size affect scraping throughput?

Bandwidth math for scraping: one million 2 MB pages equal 2 TB, which takes over 44 hours at 100 Mbps before retries

Bandwidth sets the floor for how fast and how cheaply you can collect data. The median mobile page weighs around 2 MB. At that size, one million page fetches move about 2 TB before any images, scripts or follow-up requests are counted. Moving 2 TB over a clean 100 Mbps link takes more than 44 hours, and that is without retries.

Real jobs run slower. Connection churn, TLS handshakes and headless browser overhead all add wall-clock time. Three habits keep the numbers manageable:

  • Prune requests: fetch only the pages and fields you need.
  • Cache repeat assets instead of downloading them again.
  • Prefer slim responses, such as JSON endpoints, where the site’s terms and policies allow it.

Do website templates make parsers more reliable?

Yes, when you write extractors against structure rather than appearance. WordPress powers more than 40% of all websites, and sites built on the same CMS tend to share predictable markup that changes slowly. A parser that keys off semantic roles and stable attributes survives redesigns better than one tied to pixel positions or auto-generated class names.

Structured markup, where it exists, helps further, since JSON-LD or microdata describes the content independent of layout. Add a content checksum on key page areas so you notice a template change the day it happens, not after a week of bad data.

What do CAPTCHAs and blocks really cost?

Each challenge costs time, money and often the session itself. By a widely quoted estimate, people around the world spend hundreds of years of human time every day solving CAPTCHAs. A solving service shortens that wait but still adds latency and a per-challenge fee, and abandoned sessions waste the requests already made.

So the design target is to avoid challenges, not win them faster. These measures lower the odds of triggering one:

  • Smooth, human-like pacing instead of bursts.
  • Keeping first-party cookies across a session.
  • Realistic navigation depth, rather than hitting deep URLs cold.
  • A TLS fingerprint that matches the browser you claim to be.

Rate and legal limits deserve attention too. This article on rate limiting and data privacy law compliance covers how throttling intersects with the rules on personal data.

This video from a working developer walks through the blocks and breakages that most often bite scrapers and how to fix them.

YouTube player

What network hygiene problems break scrapers first?

Mundane ones. Scrapers usually fail on proxy formatting, authentication and duplicates before they fail on anything clever. Mixed proxy formats, the wrong auth scheme, mishandled IPv6 literals and duplicate entries quietly lower success rates and distort your block diagnostics, because a connection error looks like a ban.

Standardize proxy input and validate syntax before a run. A small utility such as a proxy formatter normalizes credentials and address formats, so a list is clean before it is deployed. If you are still choosing where traffic should exit, this overview of proxy options is a useful companion, and IP reputation explains why some addresses get blocked faster than others.

How do you turn these statistics into engineering targets?

Match each constraint to a concrete budget or control, as in the table.

ConstraintWhat it means for the pipeline
About half of traffic is botsMake timing, headers and navigation look like a real browser session
HTTPS above 95%Budget CPU and latency for TLS, reuse connections, limit concurrency to handshake capacity
IPv6 near 45%Support dual-stack and validate IPv6 proxy formats
A fifth of sites behind managed edgesTest against rate limits and challenge flows instead of hoping they do not appear
Median page near 2 MBBudget bandwidth, cache, fetch slim responses
CMS templates dominateWrite parsers against stable attributes and add checksums to detect change
CAPTCHAs cost time and moneyReduce the chance of a challenge with pacing and cookie retention

How do you build a reliable scraping pipeline?

Treat the crawler as a constrained system and measure every stage.

  • Set concurrency from your handshake and bandwidth capacity, not from the biggest number the machine allows.
  • Use HTTP/2 or HTTP/3 where the server offers them, which reduces head-of-line blocking.
  • Cache aggressively and keep browser fingerprints aligned with mainstream browsers and updated.
  • Write resilient parsers from CMS knowledge, and back them with checksums.
  • Log failures by stage (network, protocol, block or parser), so you fix the right thing instead of guessing.

Once data is flowing, the next question is what to do with it. Two practical examples are scraping techniques in e-commerce analysis and web scraping for sales and marketing insights.

Frequently asked questions

Why do scrapers get blocked even with proxies?

Proxies change the IP address but not behavior. Bot-like timing, mismatched headers or a TLS fingerprint that does not match the claimed browser still give you away.

Is scraping at scale legal?

It depends on the site’s terms, the type of data and local law. Personal data brings privacy rules into play, so check the terms of service and get legal advice before collecting it at volume.

Should I use a headless browser for everything?

No. Headless browsers cost much more bandwidth and CPU per page. Use plain HTTP clients or JSON endpoints where they work, and keep browsers for pages that need JavaScript to render.

How do I know whether failures come from blocks or from my setup?

Log the stage of each failure. If connection and TLS errors dominate, look at proxies and network setup first, since a malformed proxy entry mimics a ban.

What should you measure first?

Run a small test of a few thousand requests and record, for each stage, the success rate, the average bytes per page and the share of challenges. Those three numbers give you a cost per successful record, and you can use that figure to compare changes before scaling up.

Bogdan Sandu

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.