From 19b34fb5a4c7300f9bd6219919750da339acef17 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Thu, 27 Feb 2020 21:51:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=89=91=E9=A3=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/reptile/pufei_net/config.js | 2 +- bin/reptile/pufei_net/find.js | 2 +- bin/reptile/pufei_net/picture.js | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/bin/reptile/pufei_net/config.js b/bin/reptile/pufei_net/config.js index 1552c60..a92131c 100644 --- a/bin/reptile/pufei_net/config.js +++ b/bin/reptile/pufei_net/config.js @@ -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, diff --git a/bin/reptile/pufei_net/find.js b/bin/reptile/pufei_net/find.js index 87b8836..84c3fde 100644 --- a/bin/reptile/pufei_net/find.js +++ b/bin/reptile/pufei_net/find.js @@ -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({ diff --git a/bin/reptile/pufei_net/picture.js b/bin/reptile/pufei_net/picture.js index aea7837..92250f2 100644 --- a/bin/reptile/pufei_net/picture.js +++ b/bin/reptile/pufei_net/picture.js @@ -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 })