Skip to content

Web crawler

A web crawler, also called a spider or a bot, is a program that discovers pages by following links from page to page and records their URLs.

What a web crawler does

A web crawler moves through a website on its own, following links, and keeps a record of the pages it finds. "Spider" is an older name for the same program, and "bot" is the broader word for any automated visitor. Search engines crawl the web to build their index, SEO tools crawl a single site to find broken links, archives crawl to keep copies of pages, and AI companies crawl public text. In e-commerce, a focused crawler is usually limited to one store or one category, and its job is to find every product page there.

How a crawl runs

A crawl starts from one or more seed URLs, such as a homepage or a category page. The crawler downloads each page, collects the links that match its rules and puts new ones in a queue, often called the frontier, which drops duplicates and decides what to visit next. It keeps going until the queue is empty or a limit on depth, page count or speed is reached. A sitemap.xml file, when a store publishes one, lists many URLs up front and saves much of the link-following. Well-behaved crawlers also read the site's robots.txt file.

Crawler or scraper

A crawl tells you which pages exist, not what is on them. Its output is a list of URLs and links, sometimes with raw copies of pages. Turning a product page into a price, a stock status or a GTIN is the job of a scraper. In e-commerce the two usually run as one pipeline: the crawler builds the product list, and the scraper extracts the fields on a schedule. See web crawler vs web scraper for a side-by-side comparison.

Full guideWeb Crawler vs Web Scraper: What's the Difference?

Related terms

Turn any website into a product data table

Every product page is a data source.