Skip to content

Instantly share code, notes, and snippets.

@agalea91
Created October 14, 2022 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agalea91/6a25731cdc641ba42cc2e4dff4f004dd to your computer and use it in GitHub Desktop.
Save agalea91/6a25731cdc641ba42cc2e4dff4f004dd to your computer and use it in GitHub Desktop.
Extract sitemap urls using command line
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