Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save palashkulsh/e38207c59cf6b4ee9e25b9f6b4696cc3 to your computer and use it in GitHub Desktop.
Save palashkulsh/e38207c59cf6b4ee9e25b9f6b4696cc3 to your computer and use it in GitHub Desktop.
xmllint for sitemap url extraction
curl -s -XGET 'https://fs.blog/post-sitemap1.xml' | sed -e 's/xmlns=".*"//g' |xmllint --xpath '/*[local-name()="urlset"]/*[local-name()="url"]/*[local-name()="loc"]/text()' -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment