Skip to content

Instantly share code, notes, and snippets.

@mxhold
Last active April 1, 2020 03:02
Show Gist options
  • Save mxhold/75641cbf6ff125bb51ae492020ec802a to your computer and use it in GitHub Desktop.
Save mxhold/75641cbf6ff125bb51ae492020ec802a to your computer and use it in GitHub Desktop.
Download Slack Emoji

✨ Download Slack Emoji ✨

Quick way to export your Slack team's emoji (concurrently!)

Prerequisites

  1. Create an API token for your Slack team
  2. Go to the Slack API Tester for emoji.list
  3. Select the team you want to download emoji from in the token dropdown
  4. Click "Test Method"
  5. Right click on "open raw response" and then "Save Link as...". Save the file as emoji.json.
  6. Generate a list of files to download
    ruby -rjson -e 'JSON.parse(File.read("emoji.json"))["emoji"].select { |_name, url| url.include?("http") }.each { |name, url| puts "#{url}\n out=#{name}#{File.extname(url)}" }' > emoji.aria2
    
  7. Download the files
    aria2c --input-file=emoji.aria2 --max-concurrent-downloads=16
    

🎉 That's it! 🎉

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