XPath support proxy
This commit is contained in:
parent
39cc24d57a
commit
15f1b6ddf3
|
|
@ -324,7 +324,7 @@ public class XPath extends Spider {
|
||||||
if (rule == null) {
|
if (rule == null) {
|
||||||
if (ext != null) {
|
if (ext != null) {
|
||||||
if (ext.startsWith("http")) {
|
if (ext.startsWith("http")) {
|
||||||
String json = OkHttp.string(ext, null);
|
String json = OkHttp.string(client(), ext, null);
|
||||||
rule = Rule.fromJson(json);
|
rule = Rule.fromJson(json);
|
||||||
loadRuleExt(json);
|
loadRuleExt(json);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -340,6 +340,6 @@ public class XPath extends Spider {
|
||||||
|
|
||||||
protected String fetch(String webUrl) {
|
protected String fetch(String webUrl) {
|
||||||
SpiderDebug.log(webUrl);
|
SpiderDebug.log(webUrl);
|
||||||
return OkHttp.string(webUrl, getHeaders());
|
return OkHttp.string(client(), webUrl, getHeaders());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Binary file not shown.
|
|
@ -1 +1 @@
|
||||||
08e60753eb29394b75c088e1f06dfb17
|
af5a163bf0ba899be92c5f44f3dde1d8
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue