def parse_scanlators(list):
    """
    Parse scanlation groups from a MangaUpdate's search results page.

    Parameters
    ----------
    list : BeautifulSoup
        BeautifulSoup object of the scanlators section of the search results page.

    Returns
    -------
    scanlators : list of dicts
        List of scanlation groups found by the search.
        ::

            [
                {
                    'name': 'Scanlation Group Name',
                    'id': 'Scanlation Group ID',
                    'active': True or False,
                    'contact': [
                        'contact link',
                        ...
                    ]
                }
            ]
    """
    scanlators = list.find_all("div", class_="text")[:-1]
    results = []

    for i in range(0, len(scanlators), 3):
        group = {}

        group_link = scanlators[i]
        if group_link.a is None:
            group["name"] = str(group_link.string)
        else:
            group["name"] = str(group_link.a.string)
            group["id"] = group_link.a["href"].replace(
                "https://www.mangaupdates.com/groups.html?id=", ""
            )

        group["active"] = True if scanlators[i + 1].get_text() == "Yes" else False

        group_contact = scanlators[i + 2]
        if group_contact.a is None:
            group["contact"] = group_contact.get_text()
        else:
            group["contact"] = [a["href"] for a in group_contact.find_all("a")]

        results.append(group)

    return results