Skip to content

The simplest and lightest image to run a proxy server for Chromium headless browser

License

Notifications You must be signed in to change notification settings

sashiyama/browserless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

browserless

The simplest and lightest image to run a proxy server for Chromium headless browser that can be used through browserWSEndpoint with Puppeteer

$ docker build -t browserless .
$ docker run --rm -p 80:80 browserless
import puppeteer from 'puppeteer';

(async () => {
  const browser = await puppeteer.connect({
    browserWSEndpoint: 'ws://localhost/chromium?token=xxxxx', // You can find the token in server.js but **you should change it if you want to utilize in production**
  });
  const page = await browser.newPage();
})();

About

The simplest and lightest image to run a proxy server for Chromium headless browser

Resources

License

Stars

Watchers

Forks