By the fastCRW team · Benchmark and feature claims verified 2026-05-18 · Verify independently before relying on them.
What is web scraping?
Web scraping is the automated extraction of data from web pages. Instead of a person opening a browser, reading a page, and copying the parts they care about, a program fetches the page, parses its structure, pulls out the relevant fields, and writes them somewhere useful — a database, a spreadsheet, or, increasingly, the context window of a large language model. The term covers everything from a five-line script that grabs one price to a managed API that turns a whole website into clean, structured text for an AI pipeline.
The reason "what is web scraping" matters more in 2026 than it did a decade ago is that the consumer of scraped data has changed. It used to be a human analyst or a downstream report. Now it is often a model. That shift moves the goalposts: the question is no longer just "did we get the bytes?" but "is the extracted text clean enough that an LLM answers correctly from it?" We will come back to that, because it is the part most introductions skip.
Web scraping vs manual copy-paste
Manual copy-paste does not scale and does not stay current. A human can copy ten product prices once; they cannot copy ten thousand prices every hour, normalize them into the same schema, and flag the ones that moved. Web scraping is copy-paste turned into a repeatable, scheduled, auditable program. The trade-off is up front engineering: you have to teach the program where the data lives on the page and what to do when the page changes shape.
The fetch, parse, extract, store pipeline
Almost every scraper, regardless of language or vendor, is the same four-stage pipeline:
- Fetch — retrieve the page's HTML over HTTP (sometimes after running its JavaScript).
- Parse — turn that HTML into a tree you can query, or convert it to a cleaner format like markdown.
- Extract — select the specific fields or text you actually want and drop the navigation, ads, and boilerplate.
- Store — write the result to a database, file, vector store, or pass it straight into a model.
Tools differ mostly in how much of this they do for you. A raw HTTP library hands you stage one and leaves the rest to you. A managed scraping API does all four and returns ready-to-use markdown or JSON. For a deeper hands-on walkthrough of building each stage yourself, our web scraping beginners guide covers the code; this page stays at the definition level.
How web scraping works under the hood
HTTP requests and HTML responses
At its simplest, a scraper sends an HTTP GET request to a URL and receives an HTML document back — the same document your browser receives. For static pages, that is the whole story: the HTML already contains the prices, the article text, the table rows. You parse it and you are done. This is the cheapest, fastest path, and a surprising amount of the web still works this way.
Rendering JavaScript-heavy pages
Many modern sites ship a near-empty HTML shell and build the real content in the browser with JavaScript. A plain HTTP fetch of those pages returns almost nothing useful. To scrape them you need a renderer — a headless browser that executes the page's JavaScript and waits for the content to appear before you read it. Rendering is powerful but expensive: it uses more CPU and memory and is slower than a plain fetch. The honest engineering tension is that you want to render only when you have to.
fastCRW handles this with an auto renderer that escalates only as needed — it tries the cheap path first and falls back upward (chrome → lightpanda → http) so that simple pages stay fast and only the hard ones pay the rendering cost. A plain scrape costs 1 credit; a chrome-rendered scrape costs 2 (fastCRW credit table, verified 2026-05-18). For the browser-stack mechanics in detail, see our headless browser scraping guide.
Turning HTML into clean, LLM-ready markdown
This is the stage that has quietly become the most important one. Raw HTML is full of navigation menus, cookie banners, ad slots, and layout cruft. If you feed all of that to an LLM, you waste tokens and you bury the actual answer in noise — the model retrieves the wrong chunk and answers wrong. The modern goal of a scraper is therefore not "return the HTML" but "return clean, faithful markdown that contains the page's real content and nothing else."
Extraction quality is measurable, and it is where the differences between tools actually show up. On Firecrawl's own public scrape-content dataset — 819 URLs carrying labeled ground truth — fastCRW had the highest truth-recall of the three tools tested at 63.74%, ahead of Crawl4AI (59.95%) and Firecrawl (56.04%) (diagnose_3way.py, single run, 2026-05-08). Truth-recall here means the share of the labeled-truth content the extractor actually recovered. In fast mode, fastCRW's p90 is 4348 ms — the lowest of the three (Crawl4AI 4754 ms, Firecrawl 6937 ms) — driven by the same chrome-stealth fallback that recovers hard pages others miss. Clean output and fast tail latency go together here, not against each other. For the extraction-quality story in full, see LLM-ready markdown extraction.
Web scraping vs crawling vs APIs
Scraping one page vs discovering a whole site
"Scraping" and "crawling" get used interchangeably, but they are different jobs. Scraping extracts data from a page you already have the URL for. Crawling is the discovery step: starting from a seed URL, following links, and building the set of pages that exist — which you then scrape. In practice they compose. You crawl a documentation site to find every page, then scrape each page into markdown for a knowledge base. fastCRW exposes both as distinct endpoints: /v1/scrape for a single URL and /v1/crawl for an asynchronous breadth-first crawl. For the conceptual distinction laid out properly, our scraper vs crawler explainer is the canonical reference.
When an official API is the better choice
Scraping is the right tool when a site has the data you need but no programmatic way to get it. If the site already offers an official API, use the API. It is more stable (scrapers break when the HTML changes), it is explicitly sanctioned, and it usually returns structured data directly. Scrape when there is no API, when the API is missing the fields you need, or when you need data from many sources that each have their own incompatible API — at which point "scrape every page into one normalized markdown format" is genuinely simpler than integrating ten APIs. The rule of thumb: prefer the API; reach for scraping when the API does not exist or does not cover your need.
Common web scraping use cases
RAG and AI grounding pipelines
The fastest-growing use case is feeding retrieval-augmented generation (RAG) systems. An LLM only knows what it was trained on; to answer questions about your docs, a competitor's pricing page, or today's news, you scrape that content, chunk it, embed it, and retrieve it at query time. Here extraction quality is not cosmetic — it is the accuracy lever. Boilerplate that survives into your chunks pollutes retrieval and produces confidently wrong answers. This is exactly why the truth-recall number above matters: cleaner extraction means the model retrieves the right passage. Our beginners guide and the markdown-extraction post go deeper on building this pipeline well.
Price and competitor monitoring
E-commerce teams scrape competitor catalogs to track prices, stock levels, and new listings on a schedule. The value is in freshness and coverage: a human checking a handful of products weekly versus a scraper checking thousands hourly. The engineering challenge is staying current as page layouts change and being polite enough not to hammer the target site.
Lead enrichment and market research
Sales and research teams scrape public company pages, directories, and listings to enrich a CRM with firmographic data, or to map a market by pulling structured fields from hundreds of pages. The same fetch-parse-extract-store pipeline, pointed at business data instead of product data.
Is web scraping legal and ethical?
The short answer: scraping publicly accessible data is broadly permissible in many jurisdictions, but it is not a free-for-all, and "legal" and "ethical" are not the same question. This section is general information, not legal advice — consult a lawyer for your specific situation.
robots.txt, rate limits, and terms of service
A robots.txt file is a site's published statement of what automated agents may access. It is not itself law, but it signals the operator's intent, and ignoring it is both a legal-risk and an ethical-conduct factor. A responsible scraper respects it by default. fastCRW does exactly that: robots.txt is respected by default, and it can be explicitly overridden only when the caller has the legal right to do so (fastCRW honest-gaps documentation). Beyond robots.txt, well-behaved scraping means rate-limiting your requests so you do not degrade the target site, and reading the site's terms of service, which may restrict automated collection regardless of what robots.txt says.
Public vs gated data
There is a meaningful line between data that is public (visible to anyone without logging in) and data behind authentication, a paywall, or personal-account access. Scraping public data carries less risk than scraping gated or personal data, which can implicate contract terms, computer-misuse statutes, and privacy law depending on jurisdiction. When in doubt, prefer public data, respect access controls, and do not scrape personal data you have no lawful basis to process.
Choosing a web scraping approach
DIY libraries vs managed APIs
You can build a scraper yourself with open-source libraries — an HTTP client plus an HTML parser, optionally a headless browser for JavaScript-heavy pages. This gives you maximum control and zero per-request fees, at the cost of maintaining renderers, proxies, retry logic, and extraction quality yourself. A managed scraping API does that work for you and returns clean markdown or JSON, billed per operation. The decision usually comes down to volume, team size, and how much of the undifferentiated heavy lifting (browser fleets, anti-bot, extraction tuning) you want to own. Our roundup of the best web scraping APIs compares the managed options.
Self-hosted vs cloud trade-offs
Some tools collapse the DIY-versus-managed choice. fastCRW is a single static Rust binary under AGPL-3.0 with a Firecrawl-compatible REST API: you can self-host it (your data and target URLs never leave your infrastructure, and the only cost is your own server) or use the managed cloud at fastcrw.com and pay per credit. Because the API is the same on both, the choice between them is a deployment decision, not a rewrite — you can start on the cloud free tier and move to self-host later without changing your client code. Be honest with yourself about the gaps, though: fastCRW is stateless per request, runs no residential-proxy anti-bot layer of its own, and does not support screenshot output, so heavily defended targets still need a dedicated proxy provider.
Sources
- fastCRW canonical fact sheet — scrape benchmark (
diagnose_3way.py, Firecrawl public dataset, 819 labeled URLs, 2026-05-08), credit costs, and honest gaps. Verified 2026-05-18. - fastCRW repo and pricing: github.com/fastcrw/crw · fastcrw.com
Related: Scraper vs crawler · LLM-ready markdown extraction · Web scraping beginners guide · Best web scraping APIs
