Created
June 22, 2020 14:22
-
-
Save shriyaRam/2c7dd2cc030b8b66ee502cac45a9765a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let ans="empty"; | |
app.post('/thank', urlencodedParser, async function (req, res){ | |
var reply=''; | |
async function main(){ | |
const browser = await puppeteer.launch({ | |
headless: true, | |
// slowMo: 0, // slow down by 250ms | |
args: ['--no-sandbox', '--disable-setuid-sandbox'] | |
}); | |
const page = await browser.newPage(); | |
await page.setViewport({ | |
width: 1299, | |
height: 637, | |
deviceScaleFactor: 1, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment