Skip to content

Instantly share code, notes, and snippets.

@seabre
Created April 27, 2012 16:51
Show Gist options
  • Save seabre/2510750 to your computer and use it in GitHub Desktop.
Save seabre/2510750 to your computer and use it in GitHub Desktop.
Get All URLs From Sitemap
import xml.dom.minidom
dom = xml.dom.minidom.parse("sitemap.xml")
loc = dom.getElementsByTagName('loc')
for node in loc:
print node.firstChild.data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment