|
|
|
|
@ -13,13 +13,6 @@ import okhttp3.OkHttpClient; |
|
|
|
|
|
|
|
|
|
public abstract class Spider { |
|
|
|
|
|
|
|
|
|
private boolean proxy; |
|
|
|
|
|
|
|
|
|
public Spider proxy(boolean proxy) { |
|
|
|
|
this.proxy = proxy; |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void init(Context context) throws Exception { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -63,10 +56,6 @@ public abstract class Spider { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean proxy() { |
|
|
|
|
return proxy; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Object[] proxyLocal(Map<String, String> params) throws Exception { |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|