from bs4 import BeautifulSoup


def findDivByClass(soup: BeautifulSoup, name: str):
    """just search 

    Arguments:
        soup {BeautifulSoup} -- the soup
        name {str} -- classname attribute of the searched div element

    Returns:
        [soup element] -- the found element
    """
    d = soup.find("div", {"class": name})
    if d is None:
        d = soup.find_all("div", class_=name)
    return d