I am new to this Twitter4j library. I am trying to save all user followers ids with given userID . I am using something like the following:
IDs ids; long cursor = -1; do{ ids = twitter.getFollowersIDs(userName, cursor); for (long id : ids.getIDs()) {
After a while I get the error message Rate limit exceeded , this is normal. However, I donβt know how to continue to keep the repeater identifiers of the given user ID when the speed limit problem is fixed in the future?
PS: userID , from whom I am trying to keep the repeater ID, there are more than 3 million followers. This is why I need to continue from where I left.
source share