Add the sleep command to the cursor_from_response_with_user method in the Twitter stone, which is located in lib / twitter / api / utils.rb
https://github.com/sferik/twitter/blob/master/lib/twitter/api/utils.rb
def cursor_from_response_with_user(collection_name, klass, request_method, path, args, method_name) puts "sleeping 60" sleep 60 arguments = Twitter::API::Arguments.new(args) merge_user!(arguments.options, arguments.pop || screen_name) unless arguments.options[:user_id] || arguments.options[:screen_name] cursor_from_response(collection_name, klass, request_method, path, arguments.options, method_name) end
Each response to the cursor will take at least 60 seconds, so you wonβt miss 15 requests in 15 minutes. This is a bit hacky, but it will work until this question is sorted for 75K + follower_ids.
Gregology
source share