From b29b9fff0bdf1b2a6cd232218d3b74f502d99777 Mon Sep 17 00:00:00 2001
From: Corentin Lasne <corentin.lasne@student-cs.fr>
Date: Fri, 26 May 2023 16:34:01 +0200
Subject: [PATCH] modif du corps du code

---
 main.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main.py b/main.py
index 0beed75..aa49ed5 100644
--- a/main.py
+++ b/main.py
@@ -1,7 +1,7 @@
 import snscrape.modules.twitter as sntwitter
 import pandas as pd
 
-from src.functions import construct_query, convert_date_str, calc_frequency
+from src.functions import construct_query, convert_date_str, calc_frequency, supress_n
 
 table = pd.DataFrame(columns=['date', 'tweet'])
 
@@ -20,7 +20,7 @@ for i, tweet in enumerate(sntwitter.TwitterSearchScraper(query=construct_query(t
         break
     if (tweet.lang in languages):
         dict = {'date': convert_date_str(
-            tweet.date), 'tweet': tweet.rawContent}
+            tweet.date), 'tweet': supress_n(tweet.rawContent)}
 
         if ("metaverse" in tweet.rawContent.lower()):
             table = pd.concat([table, pd.DataFrame.from_records([dict])])
-- 
GitLab