WeiW
Apify & Crawlee3w ago
6 replies
Wei

How to configure PlaywrightCrawler or PuppeteerCrawler with Browserless?

🎭PlaywrightCrawler🖥️PuppeteerCrawler👨‍💻Web-Scraping💭Suggestions
Hello, I have no success in setting up either of the crawlers with Browserless.

What is the proper Typescript way to do that with Browserless? Any docs? Thank you!

const crawler = new PuppeteerCrawler({
    launchContext: {
        useChrome: true,
        launcher: puppeteer,
        launchOptions: {
          browserWSEndpoint: wsEndpoint, => not even connected with this option
          args: [
            '--no-sandbox',
            '--disable-setuid-sandbox',
            '--disable-dev-shm-usage'
          ]
        }
      },


const crawler = new PlaywrightCrawler({
    launchContext: {
        launchOptions: {
            browserWSEndpoint: wsEndpoint, => not even has this property
        }, 
    },
Was this page helpful?