阅读背景:

爬虫 -- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe6 in position 301: unexpected end of data

来源:互联网 

 

 

html.decode("utf-8"),这种形式有时会报错,那么修改为下面形式,将decode函数的第二个参数errors设置为ignore,默认是stricthtml.decode("utf-8"),这种形式有时会报错,那么修改为下面形式



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: