A simple Emoji downloader for CLI
https://github.com/f/emoji-downloader.git
A simple Emoji downloader for CLI
Copy and paste emojidl.sh contents (or following snippet) into your .bashrc or .zshrc file. It's a simple function:
emojidl() {
curl -kLss "https://emojipedia.org/search/?q=$1" | grep "on Apple" | grep " 2x" | sed -n 's/.*<img src="\([^"]*\)".*/\1/p' | xargs curl -O
}
curl request to https://emojipedia.org/search/?q=<EMOJI>sed to extract the src attributecurl once again to download the extracted URLJust write the emojidl <emoji> and it'll find and download the emoji.
$ emojidl ๐
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16940 100 16940 0 0 12233 0 0:00:01 0:00:01 --:--:-- 9472