From 5751681c9126e3c9ea1daeece2dc3eba10a281e7 Mon Sep 17 00:00:00 2001 From: "vio.ao" Date: Sat, 1 Oct 2022 17:34:02 +0800 Subject: [PATCH] Common the downloader status process and pass error information when onError --- .../us/codecraft/webmagic/samples/PhantomJSPageProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webmagic-samples/src/main/java/us/codecraft/webmagic/samples/PhantomJSPageProcessor.java b/webmagic-samples/src/main/java/us/codecraft/webmagic/samples/PhantomJSPageProcessor.java index 99d5fa84..ab531407 100644 --- a/webmagic-samples/src/main/java/us/codecraft/webmagic/samples/PhantomJSPageProcessor.java +++ b/webmagic-samples/src/main/java/us/codecraft/webmagic/samples/PhantomJSPageProcessor.java @@ -36,7 +36,7 @@ public class PhantomJSPageProcessor implements PageProcessor { } public static void main(String[] args) throws Exception { - PhantomJSDownloader phantomDownloader = new PhantomJSDownloader().setRetryNum(3); + PhantomJSDownloader phantomDownloader = new PhantomJSDownloader(); CollectorPipeline collectorPipeline = new ResultItemsCollectorPipeline();