删除输出
This commit is contained in:
parent
7a673b274d
commit
72e55f25a0
@ -39,7 +39,7 @@ let gethtml = (name) => {
|
||||
|
||||
} catch (error) {
|
||||
num++
|
||||
console.log(num)
|
||||
// console.log(num)
|
||||
if(num > 10){
|
||||
res([])
|
||||
clearInterval(set)
|
||||
@ -86,11 +86,11 @@ let get = (name) => {
|
||||
await gethtml(name).then((res) => {
|
||||
html = res
|
||||
})
|
||||
console.log(html)
|
||||
// console.log(html)
|
||||
let $ = cheerio.load(html)
|
||||
let list = []
|
||||
await $("#dmList ul li").each((index, ele) => {
|
||||
console.log(index,123)
|
||||
// console.log(index,123)
|
||||
let item = cheerio.load($(ele).html(), { decodeEntities: false })
|
||||
let name = item("dl dt a").html()
|
||||
let date = item("dl dd p").eq(0).html()
|
||||
|
@ -37,7 +37,7 @@ let gethtml = (name) => {
|
||||
|
||||
} catch (error) {
|
||||
num++
|
||||
console.log(num)
|
||||
// console.log(num)
|
||||
if(num > 10){
|
||||
res([])
|
||||
clearInterval(set)
|
||||
|
Loading…
Reference in New Issue
Block a user