我编写了一个小的 java 程序来从 Twitter 下载所有 friend 和关注者的个人资料图片。但是我收到一个错误,因为每个 IP 地址每小时只允许 150 个请求。
确切的错误是:
twitter4j.TwitterException: 400:The request was invalid. An accompanying error message will explain why. This is the status code will be returned during rate limiting.
<?xml version="1.0" encoding="UTF-8"?>
<hash>
<request>/users/show/92715794.xml</request>
<error>Rate limit exceeded. Clients may not make more than 150 requests per hour.</error>
</hash>
有没有办法解决这个问题...???请帮助...
最佳答案
作为开发者,您可以请求将您的帐户列入白名单,将限制提高到 20,000 次请求/小时。在 http://apiwiki.twitter.com/Rate-limiting 阅读更多内容
关于Twitter API请求限制问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3265070/