Skip to content

Instantly share code, notes, and snippets.

@Mylloon
Mylloon / remove-emoji.py
Last active October 15, 2022 10:35 — forked from slowkow/remove-emoji.py
Remove all traces of emoji from a text file.
from requests import get
def emojis() -> str:
page = get("https://www.unicode.org/Public/UCD/latest/ucd/emoji/emoji-data.txt")
lines = page.text.split("\n")
blacklist = [ # blacklist of element who are not really emojis
"number sign",
"asterisk",
"digit zero..digit nine",