Member-only story

Convert emoji into text in Python

Python Coding
Aug 18, 2024

--

pip install demoji

import demoji

text="๐Ÿ‡ฎ๐Ÿ‡ณ ๐Ÿ“š โค๏ธ ๐ŸŒบ ๐ŸŒน ๐Ÿ‘ถ"
demoji.findall(text)

Out[1]:

{'๐Ÿ‘ถ': 'baby',
'โค๏ธ': 'red heart',
'๐Ÿ“š': 'books',
'๐ŸŒบ': 'hibiscus',
'๐ŸŒน': 'rose',
'๐Ÿ‡ฎ๐Ÿ‡ณ': 'flag: India'}

--

--

Python Coding
Python Coding

Written by Python Coding

Learn python tips and tricks with code I Share your knowledge with us to help society. Python Quiz: https://www.clcoding.com/p/quiz-questions.html

No responses yet