i have extraxted a number of tweets ( utf-8) in a csv file. I am trying to run a python code to count number of emoticons in each tweet.The emoticons appear in the file as follows:- 💩💩💩💩💩
Now i dont know how to identify these.
I tried to covert the whole tring to unicode and then counting them by following code:
s=str(strs, "unicode")
print(s)
print(strs)
emoti = re.finditer(r'[\U0001f600-\U0001f650]', s)
count = sum(1 for _ in emoti)
but it gives an error as-decoding str is not supported I cant collect all the tweets again, i need to count no. of emoticons on the same set of tweets. can any body tell how to go about it? Thanks in Advance