Last active
September 25, 2021 09:53
-
-
Save Abuton/906d9868e8b3970d8fdc4b32a75fd188 to your computer and use it in GitHub Desktop.
remove emojis from chats i think idont need
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#removing emojis | |
def remove_emoji(text: str) -> str: | |
""" | |
remove emojis from chats i think idont need | |
args: | |
---- | |
text: a single list of message | |
Returns: | |
-------- | |
a single list with the emojis removed | |
""" | |
return text.encode('ascii', 'ignore').decode('ascii') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment