布袋戏人兰达(Puppeteer Lambda)
在AWS Lambda环境中执行脚本。
用法
const puppeteer = require ( 'puppeteer' )
const { extract , cleanup } = require ( 'aws-puppeteer-lambda' )
; ( async ( ) => {
// Extract the headless chrome executable and return its path.
// If a previous Lambda invocation has extracted the executable, it will be reused.
const executablePath = await extract ( )
// Initialize a new browser
评论0
最新资源