0

我正在使用 twint 包,我正在尝试获取用户的帖子,直到现在我成功了,但是由于以下错误,今天由于某种原因它停止了工作:

 (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..

我的查询:

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..")

谁能帮帮我吗?谢谢 !

4

0 回答 0