Reputation: 891
I've written a small java program to download all friends' and followers' profile pictures from twitter. But i'm getting an error because only 150 requests per hour per IP address is allowed.
the exact error is:
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>
Is there a way around this problem...??? Please help...
Upvotes: 3
Views: 2755
Reputation: 29977
You can either
Judging for your description, I don't know if you can expect to get whitelisted. Given that you won't gain to much, implementing OAuth might be not worth the trouble. It seems you are stuck to taking it slow.
Upvotes: 1
Reputation: 558
As a developer you can request whitelisting of your account, raising the limit to 20 000 requests / hours. Read more at http://apiwiki.twitter.com/Rate-limiting
Upvotes: 6
Reputation: 51565
Is there a way around this problem...???
Yes. Slow down your process so that it only makes 150 requests per hour.
Upvotes: 1