From 547282ba7d0275efbf176edb52d3699e1824d898 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Sat, 29 Feb 2020 14:08:06 +0800 Subject: [PATCH] =?UTF-8?q?=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 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/reptile/tohomh123_com/find.js b/bin/reptile/tohomh123_com/find.js index 9d1433e..6ccb2de 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($(".mh-list.col7").eq(0).html()) + $ = cheerio.load($(".am-avg-sm-3.am-thumbnails.list").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('.chapter').eq(0).text() - obj.name = j(".title a").eq(0).attr('title') + obj.update = j('.tip').eq(0).text() + obj.name = j(".am-thumbnail a").eq(0).attr('title') obj.date = '未获取' - obj.url = 'https://www.tohomh123.com' + j(".title a").eq(0).attr('href') + obj.url = 'https://www.tohomh123.com' + j(".am-thumbnail a").eq(0).attr('href') // console.log(obj) list.push(obj) }) @@ -48,7 +48,7 @@ let getlist = (name) => { try { let html; html = await gethtml(name, 1) - // console.log(JSON.stringify(html)) + console.log(JSON.stringify(html)) res(html); } catch (error) { rej([])