Коллеги, тысячекратно прощу прощения, что мне приходится создавать эту тему - больше не могу, прошу о помощи!
const { plugin } = require('puppeteer-with-fingerprints');
plugin.setServiceKey('');
(async () => {
console.log("🔧 Настройка FingerprintSwitcher и Puppeteer...");
const fingerprint = await plugin.fetch({ tags: ['Windows', 'Chrome'] });
console.log("Получен отпечаток:", fingerprint.fingerprint_id);
plugin.useFingerprint(fingerprint);
const browser = await plugin.launch({ headless: false });
const page = await browser.newPage();
await page.goto('https://whoer.net');
console.log("🌐 Открыта страница whoer.net");
await new Promise(r => setTimeout(r, 15000));
await browser.close();
})();
ошибка:
PS C:\PUP_BAS>
node index.cjs
🔧 Настройка FingerprintSwitcher и Puppeteer...
Try the full version of the fingerprint service which has advantages over the free one:
- Emulate fingerprints for other platforms and browsers.
- Increased limits when receiving a fingerprints from the service.
- Filters by tags, versions, screen resolution and many other parameters.
- Popular perfect canvas queries are already included in the received fingerprints.
If you want to buy the full version, please visit this website - https://bablosoft.com/directbuy/FingerprintSwitcher/2.
The browser is downloading - this may take some time.
C:\PUP_BAS\node_modules\browser-with-fingerprints\src\plugin\connector\engine.js:160
throw new InvalidEngineError(Unable to start engine process (code: ${error.code}));
^
InvalidEngineError: Unable to start engine process (code: ENOENT)
This could be due to the fact that the engine was not downloaded or unpacked correctly.
Try completely deleting the engine folder and restarting the code until it completes.
If this does not help, open an issue with a detailed description of the problem.
at C:\PUP_BAS\node_modules\browser-with-fingerprints\src\plugin\connector\engine.js:160:17
at exithandler (node:child_process:430:5)
at ChildProcess.errorhandler (node:child_process:442:5)
at ChildProcess.emit (node:events:517:28)
at ChildProcess._handle.onexit (node:internal/child_process:290:12)
at onErrorNT (node:internal/child_process:477:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Node.js v18.20.4