A Python script to open up a base sitemap then gather all URLs from the sub-sitemaps, exporting as a CSV. Accepts one URL as a parameter - URL should be an XML sitemap contianing further XML sitemaps.
Example command:
python sitemap-extract.py https://beta.gov.scot/sitemap.xml