Get custom emoji registered in slack

Introduction

I'm sorry I wasn't in time for the advent calendar release!

When migrating a custom emoji used by one team to another team, etc.

--Get custom emoji image

Even though these are troublesome, the help of slack does not clearly describe what to do, so I searched.

Register a custom emoji

Refer to here https://get.slack.help/hc/en-us/articles/206870177-Creating-custom-emoji

スクリーンショット 2015-12-06 2.23.59.png

Get custom emoji

API:emoji.list

https://api.slack.com/methods/emoji.list

スクリーンショット 2015-12-06 1.56.00.png

If you use Tester, you will get an image of Json to get.

スクリーンショット 2015-12-06 1.59.02.png

Run

There was a person who had already implemented the function I was trying to prepare, so I will use that. https://github.com/jkloo/slack-emojis

Since we are using requests, if you need to install it, refer to the following.

http://requests-docs-ja.readthedocs.org/en/latest/user/install/ スクリーンショット 2015-12-06 2.08.40.png

$ sudo pip install requests

From the options to set

$ python get_emojis.py usage: get_emojis.py [-h] [-o OUTPUT] [--trample] slack token get_emojis.py: error: too few arguments

Set as follows.

$ python get_emojis.py team subdomain`` token -o download folder

Register custom emoji

I would like to register all at once if possible.

API: Not found

Run

Re-registration? That's a little ...

at the end

I wanted to prepare a batch registration as a migration method, but I couldn't make it in time. It seems that you can make it if you look at the request when registering from the browser ..., it is best to make it in time with the official API It's a feature that was created about a year ago, and at this point it may be hopeless.

It will be fun if it can be used in character collaboration like LINE stamps.

Recommended Posts

Get custom emoji registered in slack
How to get rid of server custom emoji in message.content
Get 1000 posts in order of posting from all Slack channels and rank emoji reactions
Get a participant's username and screen name in Slack
Get YouTube Comments in Python
Get last month in python
Implement Slack chatbot in Python
Get Evernote notes in Python
Post to Slack in Python
Get Japanese synonyms in Python
The easiest way to get started in Slack socket mode (Go)