二次修复
This commit is contained in:
parent
34354d1b16
commit
21aa5b2131
@ -4,16 +4,16 @@ const qs = require('querystring');
|
|||||||
let getcontlist = async (text) => {
|
let getcontlist = async (text) => {
|
||||||
let $ = cheerio.load(text)
|
let $ = cheerio.load(text)
|
||||||
let list = []
|
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())
|
// console.log($("li").eq(0).html())
|
||||||
$("li").each((index,ele)=>{
|
$("li").each((index,ele)=>{
|
||||||
let j = cheerio.load($(ele).html(),{decodeEntities: false})
|
let j = cheerio.load($(ele).html(),{decodeEntities: false})
|
||||||
// console.log(unescape(j('.tt').eq(0).html()))
|
// console.log(unescape(j('.tt').eq(0).html()))
|
||||||
let obj = {};
|
let obj = {};
|
||||||
obj.update = j('.tip').eq(0).text()
|
obj.update = j('.chapter').eq(0).text()
|
||||||
obj.name = j("a").eq(0).attr('title')
|
obj.name = j(".mh-item a").eq(0).attr('title')
|
||||||
obj.date = '未获取'
|
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)
|
// console.log(obj)
|
||||||
list.push(obj)
|
list.push(obj)
|
||||||
})
|
})
|
||||||
@ -57,5 +57,5 @@ let getlist = (name) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
// getlist("我")
|
getlist("哑舍")
|
||||||
module.exports = getlist
|
// module.exports = getlist
|
Loading…
Reference in New Issue
Block a user