使用BeautifulSoup时,可能会抛出如下错误:
RecursionError: maximum recursion depth exceeded while calling a Python object
查看系统递归限制,调大即可:
sys.getrecursionlimit()
1000
sys.setrecursionlimit(2000)
使用BeautifulSoup时,可能会抛出如下错误:
RecursionError: maximum recursion depth exceeded while calling a Python object
查看系统递归限制,调大即可:
sys.getrecursionlimit()
1000
sys.setrecursionlimit(2000)
下一篇:bs4使用lxml报错
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M