# Scraping vs crawling: what's the difference?

Scraping extracts content from pages whose URLs you already know, while crawling discovers pages by following links from a starting point.

Scraping and crawling solve different problems: scraping extracts content from specific pages whose URLs you already know, while crawling discovers pages by starting from one URL and following links across a site. Crawlers find the pages and scrapers read them. Most real pipelines combine both: crawl a site to list its URLs, then scrape each page's content.

## Two different jobs

The terms get used interchangeably, but they name different operations. **Scraping** is content extraction: given a URL, pull out the text, fields or data you care about. **Crawling** is discovery: given a starting point, find the URLs worth visiting by following links, sitemaps and navigation. A scraper answers "what does this page say?" A crawler answers "what pages exist?"

Search engines show the split at the largest scale. A crawler discovers pages across the web, and a separate indexing pipeline extracts and processes the content of each one.

## When you want scraping

Use scraping when you already have the URLs:

- Extracting an article, product page or documentation page that a user or agent supplied
- Enriching a list of known URLs, such as search results or citations to verify
- Converting individual pages into markdown or JSON for a prompt or a document store

## When you want crawling

Use crawling when the site itself is the unit of work:

- Ingesting a whole documentation site or knowledge base for RAG
- Mirroring a product catalog or blog where new pages appear over time
- Building a corpus when you cannot list the URLs in advance

Crawling is asynchronous by nature, since a site might be ten pages or ten thousand, so crawl services typically run as jobs that you submit and then poll. A [website crawler](https://millionshort.com/docs/glossary/what-is-a-website-crawler) also has obligations that a single-page fetch mostly does not: respecting [robots.txt](https://millionshort.com/docs/glossary/what-is-robots-txt), limiting its request rate per host, and deduplicating URLs.

## How they combine in practice

Almost every "crawl a site" task is really crawl-then-scrape: the crawler walks the links while an extraction step converts each discovered page into clean content. Managed services often join the two. If you would rather keep them separate, pair a discovery pass with a [web scraping API](https://millionshort.com/docs/glossary/what-is-a-web-scraping-api) of your choice.

There is a third way to find pages, which is to search for them. When you want pages about a subject rather than every page of one site, a [web search API](https://millionshort.com/docs/glossary/what-is-a-web-search-api) returns the URLs directly.

## Where MillionShort fits

MillionShort does both jobs. A crawl of a site you name is [Crawl](https://millionshort.com/docs/crawl), with [Map](https://millionshort.com/docs/map) for a site's URLs, and reading a page you name is [Extract](https://millionshort.com/docs/extract), which turns one URL you already have into clean text. Search is the third way: a search returns URLs with snippets from our own index, and `include_domains` restricts a search to sites you list, which answers "which pages on these sites match this query?" but does not enumerate a site.
