diff --git a/main.py b/main.py index bac6d14..3ef492d 100644 --- a/main.py +++ b/main.py @@ -46,7 +46,7 @@ class Listener(StreamListener): except AttributeError: tweet = status.text.lower() # recovery of the last "usable" word of the tweet - tweetText = sub(r"https?:\/\/\S+| *\?+| *!+| *,+|-|~|\.+|…|\^+|@\S+" + f"|{emojis()}", " ", tweet) # deletion with space + tweetText = sub(r"https?:\/\/\S+| *\?+| *!+| *,+|-|~|\.+|…|\^+|@\S+| *\'+" + f"|{emojis()}", " ", tweet) # deletion with space tweetText = sub(r"(?<=ui)i+|(?<=na)a+(?