File tree Expand file tree Collapse file tree
BasicPythonScripts/Emoji To Text Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Emoji To Text
2+
3+ ## Aim
4+ The aim of this script is to convert emoji to short text description
5+
6+ ## Purpose
7+ The pupose of this scripts if to provide user with the encoded metadata of the emoji character in Python.
8+ This scripts extracts emoji name from the Unicode Character set.
9+
10+ ## Workflow
11+ The working of this script is very straighforward, the script gets an emoji from the user as input
12+ It then extracts unicode name using the unicodedata built-in module.
13+ The scripts returns the name of first character of the string because some emojis are composed of multiple unicodes.
14+
15+ ## Screenshot
16+
17+ ![ ] ( ./Images/Screenshot.png )
18+
19+ ## Author
20+ [ Vivek Kumar Singh] ( https://github.com/vivekthedev )
Original file line number Diff line number Diff line change 1+ import unicodedata
2+
3+ # Get the emoji from user input as a string
4+ em = input ('Enter Emoji : ' )
5+
6+ # return the encoded name of the emoji from the metadata
7+ print (unicodedata .name (em [0 ]))
You can’t perform that action at this time.
0 commit comments