import re


def bestresult(musixmatch_searchresult_page):
    """Take a musixmatch result page and extract the best result link.

    Args:
        musixmatch_searchresult_page (stream_object): The html  musixmatch searchresult page

    Returns:
        str: the 'best result' link

    Raises:
        ValueError: If the regex didnt match anything
    """
    html = musixmatch_searchresult_page.read()
    pattern = re.compile(b'"track_share_url":"(\S+?)",')
    ret = pattern.findall(html)
    if ret:
        return str(ret[0], 'unicode_escape')
    raise ValueError('No result found')