Skip to content

Menumpang puppeteer diperangkat lain

Notifications You must be signed in to change notification settings

frmdeveloper/numpangpup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy dulu baru di tes
Deploy ke heroku harus lewat tombol ungu
Deploy


Fungsi: Numpang/kontol puppeteer dari perangkat lain


Contoh cara menggunakan di JS

const puppeteer = require("puppeteer-core")

async function screenshot(url) {
  const browser = await puppeteer.connect({browserURL: "http://your.url"})
  const page = await browser.newPage()
  await page.setViewport({ width: 1280, height: 720 })
  await page.goto(url)
  const result = await page.screenshot()
  await page.close()
  //browser.dicsonnect()
  return result
}

Cara lain lihat google

About

Menumpang puppeteer diperangkat lain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages