def _get_bucket(url):
    """
    Retrieves the bucket based on the URL
    :param string url: URL to parse
    :return: bucket name
    :rtype: string
    """
    first_slash_index = url.find('/')

    return url[:first_slash_index]