Posted By

diogoo on 11/26/13


Tagged


Versions (?)

Download n random images from lorempixel


 / Published in: Bash
 

Downloads a set of n images from Lorem Pixel.

  1. 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;

Report this snippet  

You need to login to post a comment.