Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 741 Bytes

README.md

File metadata and controls

24 lines (22 loc) · 741 Bytes

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