R twitteR package, get followers despite limit

妖精的绣舞 提交于 2019-12-22 10:44:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!