- Emojiguide.com
- FAQ
- Emojis for Developers
- How do I use an emoji in Python?
How do I use an emoji in Python?
Python 3 strings are Unicode by default: s = "🎉" just works. To look up by name, use the unicodedata module: import unicodedata; unicodedata.lookup("PARTY POPPER"). The emoji package on PyPI handles detection, counting and shortcode conversion.