<?xml version="1.0" encoding="UTF-8"?>
<response><data><post><id>97</id><slug>reading-sitemaps-to-discover-urls-part-5-97</slug><title>Reading sitemaps to discover URLs, part 5</title><excerpt>Part 5 looks at what changes when the same technique has to run every day in production. Before you crawl a site link by link, check whether it already publishes a list of every page it wants found.…</excerpt><seriesName>Reading sitemaps to discover URLs</seriesName><seriesPart>5</seriesPart><sections><item><heading>Introduction</heading><paragraphs><item>Part 5 looks at what changes when the same technique has to run every day in production. Before you crawl a site link by link, check whether it already publishes a list of every page it wants found. That list is usually called sitemap.xml.</item></paragraphs></item><item><heading>Putting it into practice</heading><paragraphs><item>Validate the data you extract. Prices without currencies, dates without time zones and empty fields are common sources of silent errors downstream.</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>Log every request with its URL, status code and duration. When something goes wrong at two in the morning, those logs are the difference between a quick fix and a long investigation.</item></paragraphs></item><item><heading>A practical approach</heading><paragraphs><item>Read the site's terms of service before you start. Many sites welcome automated access within limits and say so explicitly; others ask you to use an API instead.</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>Look for the Sitemap line in robots.txt, follow sitemap index files to their children, and use lastmod to skip pages that have not changed.</item></paragraphs></item></sections><authorId>5</authorId><authorName>Chen Patel</authorName><authorSlug>chen-patel</authorSlug><category>Scraping Basics</category><tags><item>json</item></tags><publishedAt>2025-09-29T00:00:00.000Z</publishedAt><wordCount>192</wordCount><readingTimeMinutes>2</readingTimeMinutes></post></data></response>
