请教下按照顺序页面爬数据,前面几十页是正常的突然有一页报错如下,请问怎么办?
用python做爬虫
错误信息如下:
_mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\xe5\........</u>' at line 1")
经过在网上搜索,应该是ascii码的问题,使用了好多办法都没有办法解决。感谢各位,希望帮忙解决下。
数据库编码是utf8修改成utf8mb4也不能解决问题。