Skip to content

Instantly share code, notes, and snippets.

@bernardeli
Created July 27, 2016 11:53
Show Gist options
  • Save bernardeli/0dd4f386c178bfec2bf90cc4c64e63e8 to your computer and use it in GitHub Desktop.
Save bernardeli/0dd4f386c178bfec2bf90cc4c64e63e8 to your computer and use it in GitHub Desktop.
#!/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