from bs4 import BeautifulSoup


def parse_pypi_index(text):
    """Parses the text and returns all the packages

    Parameters
    ----------
    text : str
        the html of the website (https://pypi.org/simple/)

    Returns
    -------
    List[str]
        the list of packages
    """
    soup = BeautifulSoup(text, "lxml")
    return [i.get_text() for i in soup.find_all("a")]