Created
April 27, 2012 16:51
-
-
Save seabre/2510750 to your computer and use it in GitHub Desktop.
Get All URLs From Sitemap
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
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