A crawler starts from one URL and follows links. The frontier is its list of URLs still to fetch, and the parser pulls the links out of each fetched page. Here there are 60 real pages on 4 sites, plus one site with no end. Turn off the seen filter, politeness or the page limit, and watch what each one was saving you from.
Try it
Speed
Lab time 3.0 s
URL frontier — 17 URLs waiting — healthy — most so far: 17
Fetchers — 2 of 4 busy — healthy — one site at a time
Web sites — at most 2 requests each — healthy — most at one site: 1
Parser — pulls out the links — healthy — 14 pages read
Seen filter — 33 URLs met — healthy — lets only new links pass
Numbers add up:33 URLs added = 16 taken + 17 waiting + 0 dropped · 16 taken = 14 fetched + 0 refused + 2 being fetched · 14 fetched = 14 stored + 0 copies + 0 fetched againThe lab checks this sum as it runs, so a counting mistake would show here.
Controls
Site by site
Site
Fetches
Waiting
Most at once
State
news.example
4
3
1
answering
shop.example
4
3
1
answering
blog.example
4
4
1
answering
docs.example
3
5
1
answering
calendar.example
1
2
1
answering
The frontier, and the real pages found
URLs waitingReal pages found
051015201s2s3s
Show data table
Time
URLs waiting
Real pages found
1s
2
1
1s
5
3
2s
10
6
2s
11
9
3s
13
11
3s
17
13
What just happened
Nothing yet. Start traffic or run an experiment.
What this model simplifies
The web here is 60 pages on 4 sites, plus a calendar site. A real crawl covers billions of pages, and its frontier lives on disk across many machines.
A site answers at most 2 requests from the crawler at once, refuses the rest, and shuts the crawler out for 5 s after 3 refusals. Real sites publish their own rules in a robots.txt file.
A refused page is not tried again here, so it is missed. A real crawler puts it back in the frontier for later.
The seen filter is an exact set. At real size it is a Bloom filter or a table on disk, which trades a few wrong answers for far less memory.
The frontier is one line, first in, first out. With politeness on, it passes over a URL whose site is busy. A real frontier also ranks URLs, so that important and fresh pages are fetched first.
Page 7 of each site is a printable copy of its page 3. The page store compares the content of each page, and skips one it already holds.
The calendar site, calendar.example, stands for every kind of endless site. The limit for each site is 20 pages here; real budgets depend on how good the site is.