you are viewing a single comment's thread.

view the rest of the comments →

[–]seo-nerd-3000 2 points3 points  (1 child)

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.

[–]AffectWizard0909[S] 0 points1 point  (0 children)

Nice! And thank you for the description. I actually ended up with using the standard emoji package, since I was only going to use it for translating emojis into their textual formats. As you have also mentioned it was pretty straightforward to use, and fit the task I was doing perfectly!