A parser for the emoji-test.txt
file provided by the Unicode Consortium written in Python.
- Python >= 3.0
pip3 install --user -r requirements.txt
from emoji_parser import EmojiParser
url = "https://unicode.org/Public/emoji/12.0/emoji-test.txt"
parser = EmojiParser(url)
result = parser.parse()
As input it takes an url to the emoji-test.txt
provided by the Unicode Consortium.
Here you find the current emoji-test.txt
files for all Unicode versions.
One successfully run result
will be a list of Emoji objects parsed from the downloaded Unicode 12.0 Emoji list.
If the download failed result
will be None
.