Forked from molotovbliss/gist:6c22ff02b50ccce3a643
Created
September 27, 2017 22:23
-
-
Save h1kkan/f18b7fadb87e7fc7df7e7b8fa93e2673 to your computer and use it in GitHub Desktop.
sitemap.xml to .txt list of urls one liner, used with siege
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
php -r '$x=new SimpleXMLElement(file_get_contents("sitemap.xml"));foreach($x->url as $n) echo $n->loc.PHP_EOL;' > urls.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment