修复扑飞
This commit is contained in:
parent
9bfd44301f
commit
19b34fb5a4
@ -5,7 +5,7 @@ find = require("./find")
|
||||
imglist = require("./picture")
|
||||
section = require("./section")
|
||||
let name = "扑飞漫画"
|
||||
let version = "20.01.03"
|
||||
let version = "20.02.27"
|
||||
let type = 1
|
||||
module.exports = {
|
||||
name,
|
||||
|
@ -1,6 +1,6 @@
|
||||
const puppeteer = require('puppeteer');
|
||||
const cheerio = require('cheerio')
|
||||
let mainurl = "http://www.pufei.net/"
|
||||
let mainurl = "http://www.alimanhua.com/"
|
||||
let gethtml = (name) => {
|
||||
return new Promise(async (res, rej) => {
|
||||
puppeteer.launch({
|
||||
|
@ -1,7 +1,7 @@
|
||||
const cheerio = require('cheerio');
|
||||
const axios = require('axios')
|
||||
const iconv = require("iconv-lite")
|
||||
let mainurl = "http://www.pufei.net/"
|
||||
let mainurl = "http://www.alimanhua.com"
|
||||
let getscript = async (url) => {
|
||||
let text;
|
||||
let imglist = [] // 图片列表
|
||||
@ -18,6 +18,7 @@ let getscript = async (url) => {
|
||||
$('script').each((index, ele) => {
|
||||
// console.log(ele)
|
||||
let text = $(ele).html()
|
||||
// console.log(text)
|
||||
let href = $(ele).attr("src")
|
||||
if (text.search('packed') != -1) {
|
||||
eval(text)
|
||||
@ -32,16 +33,16 @@ let getscript = async (url) => {
|
||||
|
||||
}
|
||||
})
|
||||
await axios({url : mainurl + scrurl,responseType: 'arraybuffer'}).then((res)=>{
|
||||
await axios({url : scrurl,responseType: 'arraybuffer'}).then((res)=>{
|
||||
// text = res.text
|
||||
let scr = iconv.decode(res.data, 'gbk');
|
||||
scr=scr.substring(scr.indexOf("//分割获取id"),scr.indexOf("console.log(mh[4]);"))
|
||||
// scr=scr.substring(scr.indexOf("current_img_base = photosr[page];") + 33,scr.indexOf("if (current_img_base.indexOf('http://') != -1 ) {"))
|
||||
// let WebimgServer = []
|
||||
// let WebimgServerURL = []
|
||||
console.log(scr)
|
||||
// console.log(scr)
|
||||
eval(scr)
|
||||
console.log(imgserver)
|
||||
// console.log(imgserver)
|
||||
scrurl = imgserver
|
||||
// text = res.data
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user