I'm facing some problems with beautifulsoup.
I'm trying to read the title of a couple website and when my code tries to read some sites that contains title with latin charactes I get this error:
[Decode error - output not utf-8]
Does someone knows how to solve this?
Cheers.
My code:
def getTitle(theList):
for element in theList:
response = urllib.request.urlopen(element)
soup = BeautifulSoup(response.read())
title = soup.find("title").text
print (element,": ",title,"\n")