I am making a knowledge engineering project.
When I was crawling some scientists personal site, this bug occurred.
import html2text
import requests
from urllib.request import urlopen
from bs4 import BeautifulSoup
import re
import urllib
homepage = "http://angom.myweb.cs.uwindsor.ca"
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:23.0) Gecko/20100101 Firefox/23.0'}
req = urllib.request.Request(url=homepage, headers=headers)
print(req)
c = urlopen(req).read()
print(type(c))
content = urlopen(req).read().decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf6 in position 139604: invalid start byte