From 73671476a88d06f1b3b0900584b84b41eb61d300 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 20 Nov 2022 16:55:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyCustomJk.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyCustomJk.js | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/SrcJyCustomJk.js b/SrcJyCustomJk.js index 165f9d0b..490e6eb7 100644 --- a/SrcJyCustomJk.js +++ b/SrcJyCustomJk.js @@ -20,6 +20,45 @@ let customparse = { }) } }); + return list; + }, + csp_custom_aidog: function (name) { + try { + var lists = []; + let html = request("https://www.dianyinggou.com/so/" + name); + let data = pdfa(html, "body&&.movies&&.each"); + data.forEach(item=>{ + let dogname = pdfh(item, "a&&title"); + if(dogname.indexOf(name)>-1){ + let dogpic = pdfh(item, "img&&data-url"); + let doghtml = request('https://www.dianyinggou.com/SpiderMovie/zy/' + dogname); + log(doghtml); + lists.push({name:dogname,html:doghtml,pic:dogpic}) + } + }) + } catch (e) { + var lists = []; + } + let task = function(obj) { + //let html = request('https://www.dianyinggou.com/SpiderMovie/zy/' + name); + //log(html); + return 1; + + } + let doglist = lists.map((item)=>{ + return { + func: task, + param: item, + id: item.url + } + }); + be(doglist, { + func: function(obj, id, error, taskResult) { + }, + param: { + } + }); + return list; } }