puppeteer简单用法

const args = process.argv.splice(2)

let nodePath = '*****/node_modules/'

let url = '******'//爬取地址

const puppeteer = require(nodePath + 'puppeteer')

sleep = function(ms){ return new Promise(resolve=>setTimeout(resolve,ms))}

function test(){ const request = request(nodePath+'request') request.post({data},function(){})}

(async() => {

})

点赞

发表评论