Commit 4c1756a3 by leiliangliang

增加抖音链接更新重试次数

parent f4fc46aa
......@@ -89,6 +89,7 @@ public class DouyinHotSearchCrawler {
String resultUrl = null;
String htmlBody = null;
Request request = RequestUtils.wrapGet(url);
for (int x = 0; x < 3; x++) {
Response response = httpBoot.syncCall(request, ProxySupplier.NAT_HEAVY_PROXY);
if (response.hasCause()){
Throwable cause = response.cause();
......@@ -108,6 +109,7 @@ public class DouyinHotSearchCrawler {
}
}
}
}
return resultUrl;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment