Web Crawler
Fetch the web without overwhelming it. Covers the URL frontier, politeness per host, robots.txt, deduplication, freshness, and the traps that catch a naive crawler.
Lessons
- 01Define the crawlChoose the purpose, coverage, freshness, and content types before drawing the pipeline.
- 02Trace one page through the systemTurn a seed URL into a document, then feed discovered links back into the frontier.
- 03Respect each hostCheck crawl preferences and schedule requests at a rate each host can tolerate.
- 04Schedule useful URLsCombine priority, fairness, and host eligibility instead of using one naive FIFO queue.
- 05Remove repeated work carefullyNormalize URL identity, then compare content separately after fetching.
- 06Fetch imperfect pages safelyBound network and parsing work, and classify outcomes before following links.
- 07Revisit without loopingSchedule recrawls by observed value and change rate while controlling traps.
- 08Partition and operate the crawlSpread hosts across workers while keeping scheduling state and health visible.