Skip to content

Instantly share code, notes, and snippets.

@jedahan
Last active August 29, 2015 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jedahan/11190306 to your computer and use it in GitHub Desktop.
Save jedahan/11190306 to your computer and use it in GitHub Desktop.
Download a random image from the metropolitan museum of art
#!/usr/bin/env bash
[ -e jq ] || curl -O http://stedolan.github.io/jq/download/osx32/jq && chmod +x jq
curl -O `curl scrapi.org/random?images=true | ./jq '.image' -r`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment