def find_spider_by_name(name, spiders):
    """find_spider_by_name : Iterates over a list of dict objects until it find one with the name
    given as an input.

    Args:
        name (str): name of the spider we need to find.
        spiders (list): list of spiders on which the function will iterate.

    Returns:
        dict: the dict object representing the data of the spider found.
    """
    for spider in spiders:
        if name in spider['main_domain']:
            return spider