/ Published in: Bash
Downloads a set of n images from [Lorem Pixel](http://lorempixe.com/).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
for i in {1..23}; do; curl "http://lorempixel.com/index.php?generator=1&x=640&y=480&cat=" -o temp.html && cat temp.html | sed -n 's/.*<img src="\([^" ]*\)".*/\1/p' | awk '{print "http://lorempixel.com/"$1}' | xargs curl -o $i.jpg; done;