python - CRITICAL :root:twint. 得到什么 :User: Error mean?

标签 python twitter error-handling

我是编码初学者。

我正在尝试从 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)

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

谢谢!

最佳答案

我也是一个初学者,正在尝试学习 Python 作为巴西数字历史的工具。 我遇到了同样的问题(仅在使用 c.Username 参数时)。 我解决了运行 pip3 install --upgrade -e git+https://github.com/twintproject/twint.git@origin/master#egg=twint

我希望它对你有用。

关于python - CRITICAL :root:twint. 得到什么 :User: Error mean?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63006722/

相关文章:

python - 检查弃用警告的代码

iphone - 如何在ios 5中实现RETWEET?

arrays - awk 问题(从用户定义的函数返回一个数组)

php - 我花了数周的时间试图修复我的PHP代码。我需要一些指导

python - 在 pandas dataframe 上应用 ML 库是个好主意吗?

python - 在 Python 中扫描一组 URL 的最快方法是什么?

javascript - 相当于纯 JS 中 jQuery 的 content().find() 链式方法

sql - 如何在更新时捕获失败的记录并继续 Oracle 中的其余记录?

python - 如何在 Google App Engine 上使用 Python 发送 JSON 格式的 cookie 数据?

ruby-on-rails - 登录我们的网站时,我得到 "Session Expired"