def get_anion_neighbors(site, structure, radius, anions, get_distance=False):
    """
    Gets neighboring anions of sites
    Args:
    :param site: (Site) target site to find anion neighbors of
    :param structure: (Structure) structure that contains target site
    :param radius: (float) radius to which anion neighbors should be looked for
    :param anions: (List of Strings) list of species considered anions
    :param get_distance: (boolean) whether or not to get distance between cation and anion
    :return: (List of either Sites or [Site, float]) list of either anion neighboring sites or [Site, float] if
    getDistance is True
    """
    anion_neighbors = []
    neighbors = structure.get_neighbors(site, radius)
    for neighbor in neighbors:
        if neighbor[0].species_string in anions and neighbor[1] < radius:
            if get_distance:
                anion_neighbors.append(neighbor)
            else:
                anion_neighbors.append(neighbor[0])
    return anion_neighbors