I'm using twint package and i'm trying to get user's posts, and until now I succeeded, but for some reason today it stopped working because of the following error:
(ValueError("time data '2021-07-02 08:55:46 ???? ??? ???????' does not match format '%Y-%m-%d %H:%M:%S %Z'"), '<USERNAME>') hasn't posted yet..
My Query:
try:
c = twint.Config()
c.Username = user_name
c.Custom["tweet"] = ["id"]
c.Custom["user"] = ["bio"]
c.Limit = vars.LIMIT
c.Lang = 'en'
c.Pandas = True
c.Since = f'{vars.TODAY} 00:00:00'
c.Until = f'{vars.TODAY} 23:59:59'
twint.run.Search(c)
Tweets_df = twint.storage.panda.Tweets_df
return Tweets_df
except Exception as e:
print(f"{e, user_name} hasn't posted yet..")
Can any one please help me? Thank you !