from bs4 import BeautifulSoup


def get_source(driver):
    """Downloads the source of the page and returns a soup instance.

    Returns:
        Beautifulsoup: A soup instance of the page source.
    """
    page_source = driver.page_source
    return BeautifulSoup(page_source, 'html.parser')