diff --git a/main.py b/main.py index b366862..2cd8c1d 100644 --- a/main.py +++ b/main.py @@ -42,13 +42,12 @@ class Listener(StreamListener): if seniority(status._json["created_at"]): # verification of the age of the tweet if not hasattr(status, "retweeted_status"): # ignore Retweet try: # retrieve the entire tweet - tweet = status.extended_tweet["full_text"] + tweet = status.extended_tweet["full_text"].lower() except AttributeError: - tweet = status.text + tweet = status.text.lower() # recovery of the last "usable" word of the tweet - regex = r"https?:\/\/\S+| +?\?|\?| +?\!| ?\!|-|~|(?<=ui)i+|@\S+|\.+|(?<=na)a+(?