Skip to content

Instantly share code, notes, and snippets.

@Abuton
Last active September 25, 2021 09:53
Show Gist options
  • Save Abuton/906d9868e8b3970d8fdc4b32a75fd188 to your computer and use it in GitHub Desktop.
Save Abuton/906d9868e8b3970d8fdc4b32a75fd188 to your computer and use it in GitHub Desktop.
remove emojis from chats i think idont need
#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