If you are coming from Google you don't know anything about R' and just want to download an XML sitemap, use this tool https://gokam.shinyapps.io/xsitemap/
If you want to learn how to do it yourself, keep on reading ⌄
It's not required to submit an XML sitemap to have a successful website but it's definitely an SEO nice to have.
Nevertheless, if you do submit one, it's best to make sure it's error-free and as you will see its is quite straightforward to extract URLs using R
Install xsitemap R’ Package (to be done once) and Load
Like in the intro, it's quite easy to count HTTP codes
to discover, at the time of writing that most of the XML sitemap URLs are actually redirects...
Plot the years the pages were added
You might have noticed that in this XML sitemap with a "lastmod" field. This is an optional field that explicitly declares to Google last modification date. This allows theoretically Google to optimise website crawls.
It also allows us to understand how fresh is one's website content as we can plot it