response = urllib.request.urlopen(url)
soup = BeautifulSoup(response.read(), from_encoding=response.info().
    getparam('charset'))
title = soup.find('title').text
regex pattern in python for parsing HTML title tags