Created
June 14, 2022 19:32
-
-
Save mursino/a4f3068bb5a1d09b4e9fabc9335b7087 to your computer and use it in GitHub Desktop.
Get URLs from a sitemap.xml file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl https://www.DOMAIN.com/sitemap.xml | grep -e loc | sed 's|<loc>\(.*\)<\/loc>$|\1|g' > urls.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment