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
  • Select an option

  • Save jeffgeiger/c3e2f1b23610b19c25cc6973595e32c2 to your computer and use it in GitHub Desktop.

Select an option

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/?.*$/d
%s/?.*$//g

This deletes any line that doesn't start with src, deletes everything before http:, and delets anything after ?.

Now loop over each URL and download the image:

while read emoji; do   
  curl -O $emoji; 
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 bacon, cuz it's gonna get hot!

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