diff --git a/main.py b/main.py index 0beed75a559b4bdabce6a6ed041a0c37321755cf..aa49ed5df04822f5c0a7deb1d201dbf5c7d34635 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])])