为什么我从twitter api上收到了“速率限制超出错误88”?

问题描述

我只是从自己的时间轴发送4条推文的请求。根据Twitter网站,我应该可以使用我的v2 Standard Basic访问帐户每15分钟收到几百条推文。 我看不到如何通过请求4条Tweet达到该限制,我的Twitter帐户本身只有18条Tweet(不知道是否包括这些Tweet,因为我只请求了4条)。

我将显示代码,以便您了解我如何使用Twitter API。

这是获得4条推文的功能:

def toon_tweets():
r = api.request('statuses/home_timeline',{'count':4})
tweet_lijst = []
for item in r.get_iterator():
    if 'text' in item:
        tweet_lijst.append(item['text'])

return tweet_lijst

我通过以下方式从另一个应用程序调用此函数:

tweets_label = Label(root,fg = "#0313fc",bg = "#ffcc00",#text = ns_m3_testB.toon_tweets(),text = "{}\n {}\n {}\n {}".format(ns_m3_testB.toon_tweets()[0],ns_m3_testB.toon_tweets()[1],ns_m3_testB.toon_tweets()[2],ns_m3_testB.toon_tweets()[3]),font = "none 14 bold",justify = "left")

我不知所措,这么简单的请求会导致我超出速率限制。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...