Extract every URL from a sitemap.xml in Python (indexes, .gz, robots.txt) and spot competitors' new pages
A site's sitemap is the cheapest full list of its pages you will ever get: the site publishes it for search engines, it usually carries a lastmod date per URL, and reading it takes seconds instead of crawling HTML for hours. That makes it the right starting point for SEO audits, migrations, content inventories, feeding a crawler or RAG pipeline, and keeping an eye on what competitors publish. The…
We haven't written up this one. Dev.to has the full story — the link below goes straight to it.