爬虫中经常出现Traceback (most recent call last):问题解决!!!_traceback (most recent call last): file "/home/zyj-CSDN博客

网站介绍:文章浏览阅读10w+次,点赞31次,收藏102次。问题描述:当用快速爬取某网站出现经常出现Traceback (most recent call last):的错误,也就是连接失败。原因首先是快速爬取连接时网络不稳定造成的,于是写了个多次尝试连接的函数。错误界面:Traceback (most recent call last): File "E:/pycharm/PycharmProjects/爬虫/BG5.py", ..._traceback (most recent call last): file "/home/zyj/detection/src/object_dete