From 79caf5b09719081f6707b022d21bd30c414b01df Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 4 Aug 2021 20:24:22 +0200 Subject: [PATCH] ignore retweet and retrieve entire tweet --- main.py | 45 +++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/main.py b/main.py index e5a4879..f51a884 100644 --- a/main.py +++ b/main.py @@ -33,27 +33,32 @@ class Listener(StreamListener): """Answer to tweets.""" if status._json["user"]["id"] in self.listOfFriendsID: # verification of the author of the tweet if seniority(status._json["created_at"]): # verification of the age of the tweet - # recovery of the last "usable" word of the tweet - regex = r"https?:\/\/\S+| +?\?|\?| +?\!| ?\!|-|~|(?<=ui)i+|@\S+|\.+|(?<=na)a+(?