Created
August 25, 2019 20:01
-
-
Save ethanpil/5737be26c7bed0fe05f1b5ac83ab2dd6 to your computer and use it in GitHub Desktop.
Bash Command to Download Giphy as GIF
This file contains hidden or 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
| giphy() { | |
| #Thank you Eric - https://eric.blog/2019/01/12/how-to-download-a-gif-from-giphy/ | |
| [[ "$1" ]] || { echo "Error: Missing giphy url" >&2; return 1; } | |
| curl -F "file=@$1" "$2" | |
| curl "$1" --output ~/Downloads/giphy.gif | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment