Open In App
Related Articles

Convert emoji into text in Python

Improve Article
Save Article
Like Article

Converting emoticons or emojis into text in Python can be done using the demoji module. It is used to accurately remove and replace emojis in text strings. To install the demoji module the below command can be used: 

pip install demoji

The demoji module also requires an initial download of data from the Unicode Consortium’s emoji code repository as the emoji list itself is frequently updated and changed. The below code block should be used for the above-mentioned download: 


import demoji


Now that we are all set to use the demoji module we can jump into a few examples.
Example 1:


Example 2:


Example 3: 


Example 4: 



Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 06 Apr, 2021
Like Article
Save Article
Similar Reads
Related Tutorials