小编man*_*nsi的帖子

CRITICAL:root:twint.get:User: 错误是什么意思?

我是编码初学者。

我正在尝试从 Twitter 帐户中抓取推文。

当我运行我的代码时,出现以下错误: CRITICAL:root:twint.get:User:

这是我正在运行的代码:

import twint 

config = twint.Config()
    # Search tweets tweeted by user 'BarackObama'
config.Username = "BarackObama"
    # Limit search results to 20
config.Limit = 20
    # Return tweets that were published after Jan 1st, 2020
config.Since = "2020-01-1 20:30:15"
    # Formatting the tweets
config.Format = "Tweet Id {id}, tweeted at {time}, {date}, by {username} says: {tweet}"
    # Storing tweets in a csv file
config.Store_csv = True
config.Output = "Barack Obama"    

twint.run.Search(config)
Run Code Online (Sandbox Code Playgroud)

这个错误是否意味着 Twint 有问题,或者我的代码有错误? …

python twitter error-handling

3
推荐指数
1
解决办法
5810
查看次数

标签 统计

error-handling ×1

python ×1

twitter ×1