Build Unblockable Scrapers with Puppeteer, Playwright and Selenium
Integrate Bright Data’s browser with your scraping scripts to outsmart bot-detection software and avoid website restrictions.
const puppeteer = require('puppeteer-core');
const auth = 'USERNAME:PASSWORD';
async function run(){
let browser;
try {
browser = await puppeteer.connect({
browserWSEndpoint: `wss://${auth}@brd.superproxy.io:9222`,
});
const page = await browser.newPage();
page.setDefaultNavigationTimeout(2*60*1000);
await page.goto('http://lumtest.com/myip.json');
const html = await page.content();
console.log(html);
} catch(e){
console.error('run failed', e);
} finally {
await browser?.close();
}
}
if (require.main==module)
run();
import asyncio
from playwright.async_api import async_playwright
auth = 'USERNAME:PASSWORD'
browser_url = 'wss://{auth}@brd.superproxy.io:9222'
async def main():
async with async_playwright() as pw:
print('connecting');
browser = await pw.chromium.connect_over_cdp(browser_url)
print('connected');
page = await browser.new_page()
print('goto')
await page.goto('http://lumtest.com/myip.json', timeout=120000)
print('done, evaluating')
print(await page.evaluate('()=>document.documentElement.outerHTML'))
await browser.close()
asyncio.run(main())
Website unblocking
Augment your Puppeteer, Playwright and Selenium scrapers with a suite of unlocking tools: Proxy rotation and cooling, CAPTCHA solving, browser fingerprinting, automatic retries, and more.
Implement with a single line of code
Simply connect your Puppeteer, Playwright or Selenium scripts to Bright Data’s browser and you’re set to go. All proxy and unlocking operations are seamlessly taken care of behind the scenes.
Unblock your scrapers
Superior unlocking capabilities
Bright Data possesses a deep understanding of the bot-detection market. It has dedicated teams that regularly monitor changes in this domain, and it continually updates its products accordingly.
Scale without limits
Scale your scraping operations without managing your own servers. Bright Data’s browsers are hosted on a highly scalable infrastructure, allowing you to run a week’s worth of scraping projects in less than an hour.