2020年3月1日

ip被禁用后复活---解决418报错

摘要: 爬豆瓣长评时,突然不能继续爬取了。response.status_code返回为418,get_html(utl)返回ip不能用了。 解决:status_code报错后,设置等待时间 count=0 while status_code!=200: count+=1 time.sleep(count* 阅读全文

posted @ 2020-03-01 17:50 ifran 阅读(1204) 评论(0) 推荐(0) 编辑

导航