二次修复
This commit is contained in:
parent
34354d1b16
commit
21aa5b2131
@ -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
|
||||
getlist("哑舍")
|
||||
// module.exports = getlist
|
Loading…
Reference in New Issue
Block a user