推特限速混乱?
Twitter rate limiting confusion?
所以我目前正在使用 NodeXL to get search for a particular Twitter hashtag, and I'm having trouble on understand how exactly the rate-limiting works. I looked it up in Twitter's API Rate Limits page, and also this SO post,但即使阅读了两者,我也不是很明白。 API 页面显示:
Search will be limited at 180 queries per 15 minute window for the time being.
还有
Rate limiting in version 1.1 of the API is primarily considered on a per-user basis — or more accurately described, per access token in your control. If a method allows for 15 requests per rate limit window, then it allows you to make 15 requests per window per leveraged access token.
但我完全糊涂了...可能是因为我以前从未真正使用过任何数据库或社交网络分析。
当它说它总是每15分钟查询180次时,究竟什么是查询?搜索在 NodeXL 上的工作方式是限制要搜索的推文数量。因此,如果我搜索一次并将我的推文限制设置为 1000 条推文,那是否只有 1 个查询?
抱歉,如果这看起来像一个愚蠢或非常初级的问题,但我根本没有这方面的经验,任何帮助将不胜感激,谢谢!
When it says that it always 180 queries per 15 minutes, what exactly
constitutes a query?
每当您向 Twitter
发出一个请求时,它都被视为一个查询。对于 Search API
,您每 15 分钟可以拨打 180 次电话。
So if I search once and set my tweet limit to 1000 tweets, is that
only 1 query?
是的,但是您不能将计数设置为 1000,因为您可以 return 每个请求的最大推文是 100,正如它提到的那样 here。
您可以使用正常的搜索查询检索最新的 100 条推文,对于分页,您应该使用 since_id
和 max_id
来检索接下来的 100 条推文以获得新的推文。
您每 15 分钟可以查询的次数 windows 因 API
而异。例如,如果使用 Search API
,则每 15 分钟可以查询 180 个请求 window。但是,如果您像 GET friends/ids
一样使用 API
,则每 15 分钟限制为 15 个查询 windows。即每 15 分钟只能拨打 15 次电话。
这里是 Rate limits chart,您可以在其中找到每个 API
.
每 15 window 可以发出多少请求
所以我目前正在使用 NodeXL to get search for a particular Twitter hashtag, and I'm having trouble on understand how exactly the rate-limiting works. I looked it up in Twitter's API Rate Limits page, and also this SO post,但即使阅读了两者,我也不是很明白。 API 页面显示:
Search will be limited at 180 queries per 15 minute window for the time being.
还有
Rate limiting in version 1.1 of the API is primarily considered on a per-user basis — or more accurately described, per access token in your control. If a method allows for 15 requests per rate limit window, then it allows you to make 15 requests per window per leveraged access token.
但我完全糊涂了...可能是因为我以前从未真正使用过任何数据库或社交网络分析。
当它说它总是每15分钟查询180次时,究竟什么是查询?搜索在 NodeXL 上的工作方式是限制要搜索的推文数量。因此,如果我搜索一次并将我的推文限制设置为 1000 条推文,那是否只有 1 个查询?
抱歉,如果这看起来像一个愚蠢或非常初级的问题,但我根本没有这方面的经验,任何帮助将不胜感激,谢谢!
When it says that it always 180 queries per 15 minutes, what exactly constitutes a query?
每当您向 Twitter
发出一个请求时,它都被视为一个查询。对于 Search API
,您每 15 分钟可以拨打 180 次电话。
So if I search once and set my tweet limit to 1000 tweets, is that only 1 query?
是的,但是您不能将计数设置为 1000,因为您可以 return 每个请求的最大推文是 100,正如它提到的那样 here。
您可以使用正常的搜索查询检索最新的 100 条推文,对于分页,您应该使用 since_id
和 max_id
来检索接下来的 100 条推文以获得新的推文。
您每 15 分钟可以查询的次数 windows 因 API
而异。例如,如果使用 Search API
,则每 15 分钟可以查询 180 个请求 window。但是,如果您像 GET friends/ids
一样使用 API
,则每 15 分钟限制为 15 个查询 windows。即每 15 分钟只能拨打 15 次电话。
这里是 Rate limits chart,您可以在其中找到每个 API
.