<?xml version="1.0" encoding="UTF-8"?>
<response><data><post><id>177</id><slug>reading-sitemaps-to-discover-urls-part-9-177</slug><title>Reading sitemaps to discover URLs, part 9</title><excerpt>Part 9 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>9</seriesPart><sections><item><heading>Introduction</heading><paragraphs><item>Part 9 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>Time zones matter more than they seem. Store timestamps in UTC and convert only when displaying them.</item><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>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></paragraphs></item><item><heading>Common pitfalls</heading><paragraphs><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><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>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>11</authorId><authorName>Oliver Kim</authorName><authorSlug>oliver-kim</authorSlug><category>Scraping Basics</category><tags><item>selenium</item><item>scrapy</item></tags><publishedAt>2025-03-18T00:00:00.000Z</publishedAt><wordCount>185</wordCount><readingTimeMinutes>2</readingTimeMinutes></post></data></response>
