def METHOD_NAME(numberofpages):
    """This function returns the data of connections containg name and profile url
    Arguments:
    numberofpages:number of pages of connections
    :return: connectiondata
    """
    connectiondata = []
    for j in range(1, numberofpages + 1):
        browser.get(paginationurl + str(j))
        time.sleep(3)
        pagesource = browser.page_source
        soup = BeautifulSoup(pagesource, "html.parser")
        connections = soup.find_all("div", class_="entity-result__content")
        for connection in connections:
            titlecontainer = connection.find(class_="entity-result__title-text")
            nameelement = titlecontainer.find("a", class_="app-aware-link")
            nametext = nameelement.find("span", {"dir": "ltr"}).text.split("View")[0]
            url = nameelement["href"]
            connectionobj = {"name": nametext, "profileurl": url}
            connectiondata.append(connectionobj)
    return connectiondata