我目前正在使用以下代码,这将获取tweet,然后将其传递给一个处理函数。但这不是实时的。
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
mentions = api.mentions_timeline(count=1)
for mention in mentions:
processText()
我也曾关注过流式推文,但我还没有找到一种方法来流式处理提到的内容。
目前没有回答
相关问题 更多 >
编程相关推荐