Same-Host Web Crawler with Retries

Asked at Snowflake · System Design for ML · Difficulty: Hard · Last asked Jan 22, 2026

Build the core of a web crawler for one website. Starting from a given page, visit every page you can reach by following links that stay on the same host, fetch each page once, and survive pages that fail to load. Two helper functions do the network and HTML work for you.

Loading the problem…