Download n random images from lorempixel


/ Published in: Bash
Save to your folder(s)

Downloads a set of n images from [Lorem Pixel](http://lorempixe.com/).


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.