Extract URLs from an XML sitemap.
Install the Sitemap Urls command line tool:
npm install -g sitemap-urlsRun sitemap-urls on a file containing a sitemap:
sitemap-urls sitemap.xmlAlso supports piping:
curl http://example.com/sitemap.xml | sitemap-urlsUsage: sitemap-urls <path> [<options>]
Path:
Path to a file containing an XML sitemap.
This parameter is ignored when the sitemap is being piped.
Options:
-h, --help Show this help text.
-v, --version Print sitemap-urls' version.
Extracts URLs from a string containing an XML sitemap.
Example result:
[
"http://example.com/",
"http://example.com/test/"
]
- medic - Perform bulk URL status checks and track changes.
Sitemap Urls is released under the MIT license.
Copyright © 2015 Roland Warmerdam.
