← All articles

Web Data Fundamentals

What Is a Web Crawler and How Does It Find Pages?

By Listaro
What Is a Web Crawler and How Does It Find Pages? — original editorial illustration of web crawler using page records and archival imagery.

A web crawler is software that discovers and visits URLs, typically by starting with one or more known pages and following the links it encounters. It keeps track of which addresses it has visited, which remain to be checked, and which fall outside its allowed scope. You use a website crawler when finding the relevant pages is itself part of the job.

Table of Contents

Imagine you're preparing to reorganize a company's public help center. You know the home page, but nobody has handed you a complete list of the articles. Rather than clicking through every menu yourself, you can use a crawler to discover the linked pages and keep a record of what it has found. That record is what makes the inventory useful.

How a crawler keeps track of URLs

Mechanical web crawler mapping connected pages beside an organized card-file frontier.

So how does the crawler remember where it's been and where to go next? It maintains a frontier, which is a queue or another organized collection of discovered URLs awaiting evaluation. The first addresses you give it are called seeds. Each time it fetches a page, it can examine the links and decide which new destinations belong in that frontier.

As the frontier grows, the same address may appear in several menus or articles. A visited set helps the crawler avoid repeating work. Normalization can remove fragments and resolve relative links, although query parameters need careful treatment because two addresses with different parameters may contain genuinely different information.

Even after avoiding duplicate visits, you'll want to keep the address you asked for separate from the final URL after a redirect. If the help center has recently moved some articles, for instance, several old addresses may now lead to the same document. Keeping both addresses lets you understand what actually changed.

Why scope and depth matter

Once the crawler can follow links, the next question is how far it should go. Depth measures the number of links away from a seed, while a page limit caps the amount of work. A documentation directory with hundreds of links at depth one can require more collection than a smaller site with several levels of navigation.

Depth alone won't tell the crawler which pages are relevant. That's what scope is for: you can limit the run to a particular host or documentation path and exclude account areas, shopping carts or unrelated domains. Review the site's access restrictions and the Robots Exclusion Protocol, remembering that robots rules don't independently grant permission to collect content.

With a sensible scope in mind, check the Listaro plan and collection limits before starting a large run. Those allowances help you choose a page count and resource budget appropriate for your workspace, rather than starting an open-ended collection and discovering its limits halfway through.

Three ways to discover pages

If you want to understand how a visitor navigates a website, following its links is a natural place to start. Begin at a known page and examine the destinations it exposes. Just keep in mind that articles absent from the reachable link graph may not appear in your inventory.

Read a sitemap

A sitemap can help you find some of those additional candidates. It's a list of URLs provided by the site owner, rather than proof that every listed page currently works or contains the expected article. Include its entries where appropriate, then verify what the crawler actually observes.

Supply a list

Sometimes you already have the URLs you need, perhaps from a previous inventory or an authorized export. In that case, supplying the list directly makes it easier to account for every intended page. You may not need further traversal at all.

What the coverage numbers tell you

Archivist sorting visited and unresolved document cards beside a paper link map.

Suppose your crawler discovers 180 URLs in a help center. You collect 120 pages before reaching a configured limit, exclude 30 duplicates or out-of-scope addresses, and leave 30 eligible URLs unvisited. Reporting the result as a complete archive would be misleading.

This is why the final report needs more than a total page count. Separate discovered, fetched, excluded, failed and remaining URLs, and retain a reason for each failure. A missing page calls for a different response than a temporary server error, an access restriction or a page that hasn't been visited because the budget ran out.

When you need to explain those gaps to someone else, Listaro's evidence and provenance guidance makes the difference between discovery and observation explicit. You can also save a repeatable collection as a workflow, which gives you comparable runs when the help center changes. Don't treat a missing result from an incomplete run as a confirmed deletion.

Start with the pages you need

If your task is to produce a URL inventory, prioritize discovery and coverage. If you need the article text or individual data fields, the next step is extraction, as explained in our web scraping guide.

For the help center inventory, begin with the documentation path and a modest page limit. Inspect the excluded and unvisited URLs before widening the crawl; the gaps will tell you whether the inventory is ready for the migration.

Related articles