title: Removing all Emojis from Text
body: <p>This question has been asked here <a href="https://stackoverflow.com/questions/48860804/python-how-to-remove-all-emojis">Python : How to remove all emojis</a> Without a solution, I have as step towards the solution. But need help finishing it off.</p>
  
  <p>I went and got all the emoji hex code points from the emoji site: <a href="https://www.unicode.org/emoji/charts/emoji-ordering.txt" rel="noreferrer">https://www.unicode.org/emoji/charts/emoji-ordering.txt</a></p>
  
  <p>I then read in the file like so:</p>
  
  <pre><code>file = open('emoji-ordering.txt')
  temp = file.readline()
  
  final_list = []
  
  while temp != '':
      #print(temp)
      if not temp[0] == '#' :
              utf_8_values = ((temp.split(';')[0]).rstrip()).split(' ')
              values = ["u\\"+(word[0]+((8 - len(word[2:]))*'0' + word[2:]).rstrip()) for word in utf_8_values]
              #print(values[0])
              final_list = final_list + values
      temp = file.readline()
  
  print(final_list)
  </code></pre>
  
  <p>I hoped this would give me unicode literals. It does not, my goal is to get unicode literals so I can use part of the solution from the last question and be able to exclude all emojis. Any ideas what we need to get a solution?</p>