I was trying to access all the followers of a user by his screen name using the Ruby interface of the Twitter REST API 1.1, with the following code:
handle = "USER_SCREENNAME"
cursor = -1
while cursor != 0 and seen == false do
id_batch = client.follower_ids(handle, cursor: cursor) // error at this line
cursor = id_batch.next_cursor
end
It all went well, UNTIL after around 70000 followers, I got the
500 Internal Server Error
Twitter::Error
at the commented line above
Please let me know what went wrong. Thanks!