一般是遇到了反爬,我使用的是urllib库,这个库比较久,然后换用request库再次请求,还要添加header,如果不加就返回空,header中包含user-agent信息,表示从用户浏览器访问。
爬虫错误返回418
猜你喜欢
转载自blog.csdn.net/qq_44798484/article/details/105651079
今日推荐
周排行