from bs4 import BeautifulSoup


def __get_links_info(soup:BeautifulSoup)->list:
    """
    Obtêm os links associados dentro do documento html

    args:
        soup:BeautifulSoup -> instancia do documento html

    returns: lista de dicionários contendo {"link": "link1", "name": "descricao1"}
    """
    links = []
    for link in soup.find_all('a'):
        links.append({"link": link.get('href'),
        "name":link.string})
    return links