Enhance your web scraping experience with cloud-driven headful browsers, ensuring stealthy automation and efficient unblocking
import puppeteer from 'puppeteer-core';
const TOKEN = 'your-token';
(async () => {
const browser = await puppeteer.connect({browserWSEndpoint: `https://cloudbrowser.gologin.com/connect?token=${TOKEN}`,
ignoreHTTPSErrors: true ,
});
console.info('Browser connected! Scraping...');
const page = await browser.newPage();
await page.goto('https://iphey.com');
await page.screenshot({ path: 'screenshot.jpeg' })
console.info('Screenshot taken!')
})();