Created
July 27, 2016 11:53
-
-
Save bernardeli/0dd4f386c178bfec2bf90cc4c64e63e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
date=2016-07-27 | |
while [ "$date" != 2016-08-20 ]; do | |
image=$(curl http://www.imagebrief.com/api/v1.5/daily_image?date=$date | jq .imagePath) | |
wget http:$(echo $image | tr -d '"') | |
date=$(date -I -d "$date + 1 day") | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment