Python3 Error: TypeError: Can’t convert ‘bytes’ object to str implicitly
urlopen() returns a bytes object, to perform string operations over it you should convert it to str first. To get the correct charset : How to download any(!) webpage with correct charset in python?