这是一个创建于 3382 天前的主题,其中的信息可能已经有所发展或是发生改变。
听说程序员晚睡,谁能跟我解释一下网都断了,为什么还在爬取数据,而不是报错,这是什么原因
4 条回复 • 2015-11-16 09:36:15 +08:00
![Victor215](https://cdn.v2ex.com/avatar/e062/35df/127887_normal.png?m=1705986193) |
|
1
Victor215 2015-11-16 00:42:15 +08:00
贴出来 code 和 log 让我们看看……
|
![owlsec](https://cdn.v2ex.com/avatar/ee05/db07/44369_normal.png?m=1453818571) |
|
2
owlsec 2015-11-16 03:48:42 +08:00
code&&log
|
![owlsec](https://cdn.v2ex.com/avatar/ee05/db07/44369_normal.png?m=1453818571) |
|
3
owlsec 2015-11-16 03:49:07 +08:00
|
![zhexue69](https://cdn.v2ex.com/avatar/4b90/2a7a/145355_normal.png?m=1446428376) |
|
4
zhexue69 2015-11-16 09:36:15 +08:00
有可能上次采集本地有 cache ,爬虫默认策略先从本地 cache 读,就这样。
|