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