This is python script that exports emoji from one slack organization and imports then into another via the Slack API. Because the Slack API does not allow you to use a non bot/app user token, you have to get some information from your broswer so the script can emulate broswer Slack API calls.
NOTE: This script will only work if you have access to see the emoji page for your source slack org and access to add custom emoji in your destination slack org
- Python 3
- Requests pip3 library. To install run
pip3 install requests
in a command prompt after installing Python.
- Open a broswer window and open your dev tools network tab
- Set a filter of
/api/emoji.list
- Go to https://YOUR-EMOJI-SOURCE-ORG.slack.com/customize/emoji
- You should see one request in your network tab, click it
- Copy the
Cookie
request header value into thesourceSlackOrgCookie
variable value in the script - Copy the
Token
form data value into thesourceSlackOrgToken
variable value in the script - Go to https://YOUR-EMOJI-DESTINATION-ORG.slack.com/customize/emoji
- You should see one request in your network tab, click it
- Copy the
Cookie
request header value into thedestinationSlackOrgCookie
variable value in the script - Copy the
Token
form data value into thedestinationSlackOrgToken
variable value in the script - Run the script :)
The script will not download emoji you have already downloaded and will not try upload emoji you have already uploaded so if you run into an error that causes the script to fail you can restart it and it will pick up where it left off.