<?xml version="1.0" encoding="UTF-8"?>
<response><data><post><id>23</id><slug>respecting-robots-txt-in-practice-part-2-23</slug><title>Respecting robots.txt in practice, part 2</title><excerpt>In part 2 we take the ideas from earlier instalments and apply them to a larger, messier site. robots.txt is a short text file with a long history. It tells automated clients which parts of a site…</excerpt><seriesName>Respecting robots.txt in practice</seriesName><seriesPart>2</seriesPart><sections><item><heading>Introduction</heading><paragraphs><item>In part 2 we take the ideas from earlier instalments and apply them to a larger, messier site. robots.txt is a short text file with a long history. It tells automated clients which parts of a site the operator would prefer they left alone, and how quickly they should crawl the rest.</item></paragraphs></item><item><heading>Step by step</heading><paragraphs><item>Dynamic pages render content after the initial HTML arrives. A browser automation tool can wait for a specific element to appear, which is far more reliable than sleeping for a fixed amount of time.</item><item>Store raw responses alongside parsed output while you are developing. When a parser breaks, you can replay the saved HTML instead of hitting the site again.</item><item>Treat HTTP 429 responses as a signal, not an obstacle. Read the Retry-After header, back off, and resume at a slower pace.</item></paragraphs></item><item><heading>Going further</heading><paragraphs><item>Deduplicate as you go. The same item often appears on several listing pages, and a stable identifier such as a SKU or ID makes duplicates easy to spot.</item><item>Character encodings still cause trouble. Decode responses using the charset the server declares, and normalise text before comparing or storing it.</item></paragraphs></item><item><heading>Key takeaway</heading><paragraphs><item>Fetch robots.txt before you crawl, honour Disallow rules and Crawl-delay values, and re-check it periodically because sites change their policies.</item></paragraphs></item></sections><authorId>7</authorId><authorName>Kwame Mensah</authorName><authorSlug>kwame-mensah</authorSlug><category>Ethics &amp; Law</category><tags><item>javascript</item></tags><publishedAt>2026-08-07T00:00:00.000Z</publishedAt><wordCount>203</wordCount><readingTimeMinutes>2</readingTimeMinutes></post></data></response>
