简体   繁体   English

Twitter API v2 - 速率限制

[英]Twitter API v2 - Rate Limit

I'm accessing Twitter's API v2 and have Academic Research access.我正在访问 Twitter 的 API v2 并拥有学术研究访问权限。 I am interested in pulling as much data as possible, but am getting rate limited.我有兴趣提取尽可能多的数据,但速度有限。

I am using tweepy in Python to extract the data, and the call "search_all_tweets" I am looping the extraction for each day and limiting tweets extracted per day.我在 Python 中使用 tweepy 来提取数据,并且调用“search_all_tweets”我每天循环提取并限制每天提取的推文。 By using time.sleep() I can modify how many tweets I can extract per 15 minutes.通过使用 time.sleep(),我可以修改每 15 分钟可以提取多少条推文。

Twitter has published this to answer my question, however I am still in doubt which category and thereby limit I am under: https://developer.twitter.com/en/docs/twitter-api/rate-limits#v2-limits Twitter 已发布此内容以回答我的问题,但我仍然怀疑我属于哪个类别并因此受到限制: https://developer.twitter.com/zh/

Can anybody help to clarify how many tweets I can extract per 15 minutes before getting rate limited?有人可以帮助澄清在限制速率之前我每 15 分钟可以提取多少条推文吗?

Thanks in advance提前致谢

Go to the Twitter developper portal , select your app in your project and, at the bottom of the Settings tab, check if you have activated the Read and Write permissions in the OAuth 1.0a authentication. Go to the Twitter developper portal , select your app in your project and, at the bottom of the Settings tab, check if you have activated the Read and Write permissions in the OAuth 1.0a authentication. If not, activate them and regenerate your tokens.如果没有,请激活它们并重新生成您的令牌。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM