links = soup.find_all('a', href='/customer-menu/1/accounts/1/update')
for link in links:
    if link.find(text=re.compile('Edit')):
        thelink = link
break
print(thelink)
BeautifulSoup - search by text inside a tag