Skip to content

Instantly share code, notes, and snippets.

@bndabbs
Last active June 13, 2020 14:09
Show Gist options
  • Save bndabbs/c1e3cd2e35748ab5c345e711b48161bf to your computer and use it in GitHub Desktop.
Save bndabbs/c1e3cd2e35748ab5c345e711b48161bf to your computer and use it in GitHub Desktop.

Grab the main page with all the links:
curl https://slackmojis.com/ > emoji

Open file in vim and run the following commands:

v/src=/d
%s/^.*https:/https:/g"
%s/?.*$//g

This deletes any line that doesn't contain src=, deletes everything before https:, and deletes anything after ?.

Now loop over each URL and download the image:

while read url; do   
  curl -O $url; 
done <./emoji

Install Slack Emoji Tools Chrome extension.

Drag all your emoji into the bulk upload box and then flip your machine over and fry some 🥓, cuz it's gonna get hot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment