Download n random images from lorempixel

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

Downloads a set of n images from [Lorem Pixel](

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


RSS Icon Subscribe to comments

You need to login to post a comment.