Created
June 6, 2019 10:38
-
-
Save modelorona/e2d45d86bb0f99fc66f28f7eaa8d45ee to your computer and use it in GitHub Desktop.
Get a chinese proverb
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
echo "chinese proverb:" | |
curl -s https://fortunecookieapi.herokuapp.com/v1/cookie?limit=1 | python3 -c "import sys, json; print(json.load(sys.stdin)[0]['fortune']['message'])" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment