npm install antibotbrowser
const antibotbrowser = require("antibotbrowser");
var antibrowser = await antibotbrowser.startbrowser(9222);
//OR HİDE MOD (headless / no-sandbox) Mode Open browser
var antibrowser = await antibotbrowser.startbrowser_hide(9222);
const antibotbrowser = require("antibotbrowser");
const puppeteer = require('puppeteer');
(async () => {
const antibrowser = await antibotbrowser.startbrowser(9222);
const browser = await puppeteer.connect({browserWSEndpoint: antibrowser.websokcet});
// Normal use from now on
const page = await browser.newPage();
await page.setViewport({width:0, height:0});
page.goto("https://google.com")
})();
1-
const antibotbrowser = require("antibotbrowser");
const puppeteer = require('puppeteer');
(async () => {
const antibrowser = await antibotbrowser.startbrowser(9222); // We start the browser with settings Port: 9222
const browser = await puppeteer.connect({browserWSEndpoint: antibrowser.websokcet}); // We connect the launched browser to puppeteer. With the variable we created above, it gives the web socket url to puppetter with antibotbrowser.websocket.
// Normal use from now on
const page = await browser.newPage();
await page.setViewport({width:0, height:0});
page.goto("https://google.com")
})();