Skip to content

Instantly share code, notes, and snippets.

@jeffgeiger
Forked from bndabbs/slackmoji-voodoo.md
Created April 14, 2017 16:05
Show Gist options
  • Save jeffgeiger/c3e2f1b23610b19c25cc6973595e32c2 to your computer and use it in GitHub Desktop.
Save jeffgeiger/c3e2f1b23610b19c25cc6973595e32c2 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/^.*http:/http:/g"
%s/?.*$//g

This deletes any line that doesn't contain src=, deletes everything before http:, and delets 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