mirror of
https://github.com/hjdhnx/dr_py.git
synced 2024-11-21 08:28:24 -06:00
21 lines
517 B
JavaScript
21 lines
517 B
JavaScript
js:
|
|
// log(input);
|
|
let url=input.split(";")[0];
|
|
let d = [];
|
|
let body={searchword:input.split(";")[1]};
|
|
fetch_params.body=body;
|
|
let html = post(url,fetch_params);
|
|
// print(html);\
|
|
let pdfa = jsp.pdfa;
|
|
let pdfh = jsp.pdfh;
|
|
let pd = jsp.pd;
|
|
let lists = pdfa(html,'ul.stui-vodlist__media&&li');
|
|
lists.forEach(function (it){
|
|
d.push({
|
|
title:pdfh(it,'.title&&Text'),
|
|
url:pd(it,'a&&href'),
|
|
desc:pdfh(html,'.pic-text&&Text'),
|
|
pic_url:pd(html,'.lazyload&&data-original'),
|
|
});
|
|
});
|
|
setResult(d); |