import requests
import re


def download_song(url):
    """
    takes a URL and downloads the lyrics from that URL
    """
    headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
    seite = requests.get(url, headers=headers)
    text = re.findall("Sorry about that. -->(.+)<!-- MxM banner -->", seite.text, re.DOTALL)[0]
    text = re.sub("\<i\>.{1,50}\<\/i\>|\<br\>|\n|\r|\<\/div\>|\(|\)|-|\.|\;|\:|\!|\,|'|\?|\&quot", " ", text)
    text = text.lower()
    return text