Posted By

diogoo on 11/26/13


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 "" -o temp.html && cat temp.html | sed -n 's/.*<img src="\([^" ]*\)".*/\1/p' | awk '{print ""$1}' | xargs curl -o $i.jpg; done;

Report this snippet  

You need to login to post a comment.