Skip to content

Crawler

A crawler (or spider) is a program that automatically discovers and fetches web pages by following links, used by search engines, archives and SEO tools to build an index of the web.

Definition

What it is

A crawler starts from a seed set of URLs. It fetches each page, parses the HTML, extracts new URLs from href attributes, adds them to a queue, and repeats. The queue is prioritized by heuristics: internal pages before external ones, frequently updated pages before stale ones, high-authority pages before unknown ones. The result is a graph traversal of the web.

Googlebot, Bingbot, DuckDuckBot, Baiduspider, YandexBot and Applebot are the major search-engine crawlers. The Internet Archive's Heritrix is the best-known archival crawler. SEO tools (Ahrefs, Semrush, Screaming Frog) run their own crawlers to audit sites. wget --mirror, httrack and scrapy are common building blocks.

Why it matters

The web has trillions of pages. No index could exist if each page had to be submitted manually. Crawlers make discovery a background process: a new URL gets a backlink, a crawler follows it, the page enters the index. The cost is paid by the crawler, not the site, which is why search engines invest heavily in polite crawling.

Crawler vs scraper vs bot

Aspect

Crawler

Scraper

Bot

Purpose

Index pages

Extract data

Automate action

Follows links

Yes

Sometimes

Rarely

Respects robots.txt

Usually

Sometimes

Depends

Example

Googlebot

Amazon price scraper

Login bot

How a crawler walks the web

graph LR
  S[Seed URLs] --> F[Frontier queue]
  F --> P[Fetch page]
  P --> E[Parse links]
  E --> N{New URL?}
  N -->|Yes| F
  N -->|No| D[Discard]
  P --> I[Index content]
  style F fill:#FFF3E0
  style I fill:#E8F5E9

Politeness: the unspoken contract

  1. 1994 — Martijn Koster writes the first robots.txt proposal.

  2. 1994 — The Robots Exclusion Protocol is adopted by major crawlers.

  3. 2008 — Google open-sources its crawl infrastructure as part of its SRE stack.

  4. 2019 — RFC 9309 formalizes the Robots Exclusion Protocol as a standard.

  5. 2023 — Major LLM crawlers (GPTBot, ClaudeBot, Google-Extended) appear, extending the discipline.

How to be crawlable

Making your site crawlable

  1. Submit a sitemap

    /sitemap.xml tells the crawler which URLs exist. It is a hint, not a rule, but it accelerates discovery.

  2. Check robots.txt

    A single Disallow: / blocks everything. Verify with Google Search Console's robots tester.

  3. Keep pages fast

    Slow pages consume crawl budget. Under 1s TTFB is the target.

  4. Avoid infinite URL spaces

    Filters, calendar pages and session IDs can generate infinite URLs. Block them with noindex or canonical tags.

Common failures

Origin

The verb "crawl" comes from Old Norse krafla, "to claw". The web sense was coined by early web pioneers in 1993, when search engines emerged: a program that crawls from link to link, the way a spider crawls across its web. The metaphor survived: spider and crawler are synonyms; web is the substrate; Bot (short for robot) is the standard suffix.

A web crawler is a program that systematically browses the World Wide Web, typically for the purpose of web indexing.

— Wikipedia, *Web crawler*, 2024
1993 · primeros crawlers web (Wanderer, JumpStation)
1994 · robots.txt propuesto por Martijn Koster
1996 · Googlebot debuta (BackRub)
2019 · RFC 9309 formaliza Robots Exclusion Protocol
2023 · LLM crawlers (GPTBot, ClaudeBot)

Evidence

FAQ

How do I block a crawler?

robots.txt with Disallow: /. Specific user agents (Googlebot, Bingbot) can be blocked individually.

Do crawlers execute JavaScript?

Modern ones do (Googlebot, Bingbot). Older ones do not. Render-critical content should be in the initial HTML.

What is crawl budget?

The number of URLs a crawler will fetch from your site in a given period. Slow or broken sites get less.

Can I crawl my own site?

Yes, and you should. wget --mirror or scrapy reveal what crawlers see before they see it in production.

Connections

Etymology

Origin: metaphor

  • crawl (verb): from Old Norse krafla, "to claw"

Semantic network

CrawlerwebSEOrobots.txtSitemapCrawl budgspiderSEOIndexation

● broader ● narrower ● related

Used in the garden

Sources