Created
October 14, 2022 18:05
-
-
Save agalea91/6a25731cdc641ba42cc2e4dff4f004dd to your computer and use it in GitHub Desktop.
Extract sitemap urls using command line
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 SITEMAP_URL > sitemap.xml | |
cat sitemap.xml | grep -o 'loc\>.*</loc' | sed 's/loc>//g' | sed 's/<\/loc//g' > sitemap_urls.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment