<?xml version="1.0" encoding="UTF-8"?>
<response><data><post><id>83</id><slug>respecting-robots-txt-in-practice-part-5-83</slug><title>Respecting robots.txt in practice, part 5</title><excerpt>This is part 5 of our series, and this time we focus on edge cases readers asked about. robots.txt is a short text file with a long history. It tells automated clients which parts of a site the…</excerpt><seriesName>Respecting robots.txt in practice</seriesName><seriesPart>5</seriesPart><sections><item><heading>Introduction</heading><paragraphs><item>This is part 5 of our series, and this time we focus on edge cases readers asked about. 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>Be careful with relative URLs. Resolve every link against the page it came from, not against the site root, or you will request pages that do not exist.</item><item>Write small, focused tests for your parsers using saved HTML fixtures. They run in milliseconds and catch layout changes long before a full crawl would.</item><item>Validate the data you extract. Prices without currencies, dates without time zones and empty fields are common sources of silent errors downstream.</item></paragraphs></item><item><heading>What to watch for</heading><paragraphs><item>Always identify your client honestly with a descriptive User-Agent, and keep your request rate modest. A crawler that behaves like a considerate visitor is far less likely to cause problems for the site operator.</item><item>Time zones matter more than they seem. Store timestamps in UTC and convert only when displaying them.</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>6</authorId><authorName>Sofia Fischer</authorName><authorSlug>sofia-fischer</authorSlug><category>Ethics &amp; Law</category><tags><item>testing</item><item>javascript</item><item>selenium</item></tags><publishedAt>2026-04-09T00:00:00.000Z</publishedAt><wordCount>198</wordCount><readingTimeMinutes>2</readingTimeMinutes></post></data></response>
