def musixmatch(song):
escape = re.sub("<STR_LIT>", '<STR_LIT>', URLESCAPE)<EOL>translate = {<EOL>escape: '<STR_LIT>',<EOL>'<STR_LIT:U+0020>': '<STR_LIT:->'<EOL>}<EOL>artist = song.artist.title()<EOL>artist = re.sub(r"<STR_LIT>", '<STR_LIT>', artist)<EOL>artist = re.sub(r"<STR_LIT:'>", '<STR_LIT:->', artist)<EOL>title = song.title<EOL>title = re.sub(r"<STR_LIT>", '<STR_LIT>', title)<EOL>title = re.sub(r"<STR_LIT:'>", '<STR_LIT:->', title)<EOL>artist = normalize(artist, translate)<EOL>artist = re.sub(r'<STR_LIT>', '<STR_LIT:->', artist)<EOL>title = normalize(title, translate)<EOL>title = re.sub(r'<STR_LIT>', '<STR_LIT:->', title)<EOL>url = '<STR_LIT>'.format(artist, title)<EOL>soup = get_url(url)<EOL>text = '<STR_LIT>'<EOL>contents = soup.find_all('<STR_LIT:p>', class_='<STR_LIT>')<EOL>for p in contents:<EOL><INDENT>text += p.get_text().strip()<EOL>if p != contents[-<NUM_LIT:1>]:<EOL><INDENT>text += '<STR_LIT>'<EOL><DEDENT><DEDENT>return text.strip()<EOL>
Returns the lyrics found in musixmatch for the specified mp3 file or an
empty string if not found.