def groupies(user=nil)
if user
user = if options['id']
user.to_i
else
user.strip_ats
end
end
follower_ids = collect_with_cursor do |cursor|
client.follower_ids(user, :cursor => cursor)
end
following_ids = collect_with_cursor do |cursor|
client.friend_ids(user, :cursor => cursor)
end
disciple_ids = (follower_ids - following_ids)
users = disciple_ids.in_groups_of(MAX_USERS_PER_REQUEST, false).threaded_map do |disciple_id_group|
retryable(:tries => 3, :on => Twitter::Error::ServerError, :sleep => 0) do
client.users(disciple_id_group)
end
end.flatten
print_users(users)
end