I have a puppeteer script which takes a URL and scrapes it.
Every time that my website is visited, it loads up a new browser process and runs:
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto(url,{
waitUntil: 'networkidle2'
});
await browser.close();
res.end(data);
Instead of having to load a new browser process on each load, how can I have one browser running 24/7 that can still receive the URL parameter via a GET request?