def get_bulk_download_links(page):
    """Extracts the bulk download links from the BeautifulSoup object.

    Parameters
    ----------
    page : bs4.BeautifulSoup
        The bs4 representation for the bulk download page

    Returns
    -------
    download_links : dict
        A dictionary containing the download links
    """
    section = page.find("section")
    links = section.find_all("a")

    download_links = dict()
    current_state = None

    for link in links:
        if "name" in link.attrs:
            current_state = link["name"]
        elif "href" in link.attrs:
            if link["href"].startswith("mailto:"):
                continue
            session = link.text.strip()
            state_links = download_links.get(current_state, list())
            state_links.append({"session": session, "link": link["href"]})
            download_links[current_state] = state_links

    return download_links