Original code:
text =response.content.decode('gbk')
Error message:
text =response.content.decode('gbk')
UnicodeDecodeError: 'gbk' codec can't decode byte 0xd0 in position 15670: illegal multibyte sequence
This problem occurs give the decode parameter plus a ignore, modified as follows:
text =response.content.decode('gbk', "ignore")
I would not have the error.