我正在尝试通过Google上的Tweepy访问Twitter,并且正在跟踪Twitter APIv2上的Tweepy文档。https://docs.tweepy.org/en/latest/authentication.html#twitter-api-v2
所以这就是我要做的:
import tweepy
client = tweepy.Client("my_bearer_token")插入了实际的Bearer令牌。
但是,我收到以下错误消息:
AttributeError Traceback (most recent call last)
<ipython-input-3-2d6a240a3613> in <module>()
1 import tweepy
2
----> 3 client = tweepy.Client("my_bearer_token")
AttributeError: module 'tweepy' has no attribute 'Client'我读过这篇关于这个问题的文章,Tweepy 3.10.0, AttributeError: module 'tweepy' has no attribute 'Client',但我仍然不清楚为什么Tweepy文档的代码不能工作。
如果Tweepy没有属性'Client',那么该属性有更新吗?
发布于 2022-09-23 14:32:42
如果您使用tweepy.version,您将看到colab实际上已经安装了Tweepy3.10.0。我自己也面临着这个问题
https://stackoverflow.com/questions/70981838
复制相似问题