问题
I've been playing around with the R twitteR
package and haven't figured out how to implement a system to collect more than the maximum per hour #
of followers for a twitter user.
I know the plan should be to collect the maximum, wait X amount of time, then repeat until all are collected, but how do I do this with the twitteR
package?
the getFollowers(n)
process would just keep getting the same n followers each time.
回答1:
Try adding blockOnRateLimit=TRUE to your call. It'll sit and wait until it can complete (which could be a long time depending on the size of your request). It is a 'hidden' arg as I wasn't sure if I wanted to keep it the way it is or not - and in fact it is almost certainly going to change somewhat for the next version but for now it should get you where you need to go.
来源:https://stackoverflow.com/questions/15605437/r-twitter-package-get-followers-despite-limit