Created
February 17, 2015 07:43
-
-
Save molotovbliss/6c22ff02b50ccce3a643 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
With just wget
php -r '$x=new SimpleXMLElement(file_get_contents("sitemap.xml"));foreach($x->url as $n) echo $n->loc.PHP_EOL;' | xargs -n 1 -P 8 wget -q
https://stackoverflow.com/questions/7577615/parallel-wget-in-bash