Commit 44758b21 by chenweitao

Merge branch 'working' into 'master'

更换B站标签采集代理

See merge request !175
parents 5448a5f4 7682410c
...@@ -133,7 +133,7 @@ public class BililiCrawler { ...@@ -133,7 +133,7 @@ public class BililiCrawler {
Request request = RequestUtils.wrapGet(url); Request request = RequestUtils.wrapGet(url);
try { try {
System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2,SSLv3"); System.setProperty("https.protocols", "TLSv1,TLSv1.1,TLSv1.2,SSLv3");
Response response = httpBoot.syncCall(request, ProxySupplier.FOREIGN_INNER_PROXY); Response response = httpBoot.syncCall(request, ProxySupplier.NAT_HEAVY_PROXY);
String htmlBody = response.bodyString(); String htmlBody = response.bodyString();
if (htmlBody != null && htmlBody.contains("v-wrap")) { if (htmlBody != null && htmlBody.contains("v-wrap")) {
Document document = Jsoup.parse(htmlBody); Document document = Jsoup.parse(htmlBody);
......
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