Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 975 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 975 Bytes

Emoji-List-Parser

A parser for the emoji-test.txt file provided by the Unicode Consortium written in Python.

Requirements

  • Python >= 3.0
  • pip3 install --user -r requirements.txt

Example

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.