From 21aa5b213142dcb8a74678f1e164374d49eaa9ae Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Sat, 29 Feb 2020 14:33:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E6=AC=A1=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/reptile/tohomh123_com/find.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/reptile/tohomh123_com/find.js b/bin/reptile/tohomh123_com/find.js index 26c7e39..cf9f425 100644 --- a/bin/reptile/tohomh123_com/find.js +++ b/bin/reptile/tohomh123_com/find.js @@ -4,16 +4,16 @@ const qs = require('querystring'); let getcontlist = async (text) => { let $ = cheerio.load(text) let list = [] - $ = cheerio.load($(".am-avg-sm-3.am-thumbnails.list").eq(0).html()) + $ = cheerio.load($(".mh-list.col7").eq(0).html()) // console.log($("li").eq(0).html()) $("li").each((index,ele)=>{ let j = cheerio.load($(ele).html(),{decodeEntities: false}) // console.log(unescape(j('.tt').eq(0).html())) let obj = {}; - obj.update = j('.tip').eq(0).text() - obj.name = j("a").eq(0).attr('title') + obj.update = j('.chapter').eq(0).text() + obj.name = j(".mh-item a").eq(0).attr('title') obj.date = '未获取' - obj.url = 'https://www.tohomh123.com' + j("a").eq(0).attr('href') + obj.url = 'https://www.tohomh123.com' + j(".mh-item a").eq(0).attr('href') // console.log(obj) list.push(obj) }) @@ -57,5 +57,5 @@ let getlist = (name) => { }) } -// getlist("我") -module.exports = getlist \ No newline at end of file +getlist("哑舍") +// module.exports = getlist \ No newline at end of file