с puppeteer-with-fingerprints запускаю так, но что-то браузер у меня не показывается, видимо в хедлес запускается, как его показать ?
const { plugin } = require('puppeteer-with-fingerprints');
(async () => {
// Get a fingerprint from the server:
const fingerprint = await plugin.fetch('', {
tags: ['Microsoft Windows', 'Chrome'],
});
// Apply fingerprint:
plugin.useFingerprint(fingerprint);
// Launch the browser instance:
const browser = await plugin.launch();
// The rest of the code is the same as for a standard `puppeteer` library:
const page = await browser.newPage();
await page.goto('https://fingerprintjs.github.io/BotD/main/');
// Print the browser viewport size:
console.log(
'Viewport:',
await page.evaluate(() => ({
deviceScaleFactor: window.devicePixelRatio,
width: document.documentElement.clientWidth,
height: document.documentElement.clientHeight,
}))
);
await new Promise(resolve => setTimeout(resolve, 500000));
await browser.close();
})();