Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get the URL of a retriever from dog.ceo
#!/bin/bash
# Requires `curl` and `jq`
# Nice use case: $ open "$(retriever-pic)"
curl -Ss "https://dog.ceo/api/breed/retriever/images/random" | jq -r '.message'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.