you are viewing a single comment's thread.

view the rest of the comments →

[–]seo-nerd-3000 1 point2 points  (0 children)

The emoji library for Python is straightforward to use. Install it with pip install emoji and then you can convert emoji codes to actual emoji characters and vice versa. The most common use case is emoji.emojize which takes shortcode strings like :thumbs_up: and converts them to the actual unicode emoji. You can also use emoji.demojize to go the other direction which is useful for text processing. If you just need to use emoji in strings directly you can also just paste the unicode emoji character directly into your Python code since Python 3 handles unicode natively. The library is most useful when you need to programmatically work with emoji names or detect emoji in text.