(Twitter4J API) -- 未检索到超过 3235 条推文
(Twitter4J API) -- Not retrieving more than 3235 Tweets
我在使用 Twitter4J 时遇到问题 API。我编写了我的程序以从用户帐户获取推文并且它做得很漂亮,直到达到 3235 条推文并中断。我不明白为什么它在达到这个特定数字时会停止,但我需要检索大约 9000~ 条推文,所以我不确定如何解决这个问题。我正在使用分页来检索它们。
感谢大家的帮助。
你不能。
来自 documentation:
Clients may access a theoretical maximum of 3,200 statuses via the page and count parameters for the user_timeline REST API methods. Other timeline methods have a theoretical maximum of 800 statuses. Requests for more than the limit will result in a reply with a status code of 200 and an empty result in the format requested. Twitter still maintains a database of all the tweets sent by a user. However, to ensure performance, this limit is in place on the API calls.
因此,您无法使用该方法获得超过 3200 条推文,这就是您获得 3235 条推文的原因。
我在使用 Twitter4J 时遇到问题 API。我编写了我的程序以从用户帐户获取推文并且它做得很漂亮,直到达到 3235 条推文并中断。我不明白为什么它在达到这个特定数字时会停止,但我需要检索大约 9000~ 条推文,所以我不确定如何解决这个问题。我正在使用分页来检索它们。
感谢大家的帮助。
你不能。
来自 documentation:
Clients may access a theoretical maximum of 3,200 statuses via the page and count parameters for the user_timeline REST API methods. Other timeline methods have a theoretical maximum of 800 statuses. Requests for more than the limit will result in a reply with a status code of 200 and an empty result in the format requested. Twitter still maintains a database of all the tweets sent by a user. However, to ensure performance, this limit is in place on the API calls.
因此,您无法使用该方法获得超过 3200 条推文,这就是您获得 3235 条推文的原因。