From Dev.to
Find Broken Links and Redirect Chains in Your Sitemap with Python (Standard Library Only)
Your XML sitemap is supposed to be a list of pages you want indexed. In practice it drifts. A page gets deleted and the CMS keeps listing it. A slug changes, a redirect goes in, and the sitemap still...
