Support drpy - part 6

pull/123/head
FongMi 3 years ago
parent d55a06050c
commit 1b019e228c
  1. 7
      drpy/src/main/java/com/hiker/drpy/method/Global.java

@ -92,9 +92,14 @@ public class Global {
}
@JSMethod
public JSObject pdfl(String html, String p1, String list_text, String list_url, String urlKey) {
public JSObject pdfl(String html, String rule, String texts, String urls, String urlKey) {
try {
return ctx.parseJSON(new Gson().toJson(Parser.parseDomForList(html, rule, texts, urls, urlKey)));
} catch (Throwable e) {
e.printStackTrace();
return null;
}
}
@JSMethod
public String joinUrl(String parent, String child) {

Loading…
Cancel
Save