5 ms·
One of the biggest wins here is this little tidbit: > When you install Puppeteer, it downloads a recent version of Chromium (~71Mb Mac, ~90Mb Linux, ~110Mb Win
by tholman 9y ago
One of the biggest wins here is this little tidbit:
> When you install Puppeteer, it downloads a recent version of Chromium (~71Mb Mac, ~90Mb Linux, ~110Mb Win) that is guaranteed to work with the API.
A lot of the chrome interface libs about at the moment require you to maintain your own instance of chrome/chromium and launch the headless server with your command line, or require a pre compiled version, that can quickly get out of date (https://github.com/adieuadieu/serverless-chrome/tree/master/chrome https://github.com/adieuadieu/serverless-chrome/tree/master/...). Having this taken care of is a blessing.
- voiper1 9y ago... nightmarejs did that for you, too.
- thangngoc89 9y agoNighmarejs is based on Electron.
- kensoh 9y ago(Hi Tim, I use your GitHub corner :) thanks for making it) - There are still some differences between Chromium and Chrome, for example the case of playing back MP4 video due to paid licensing. But Puppeteer being easily configurable to use Canary or an existing Chrome installation addresses this gap.
- fake-name 9y agoThere is complexity here you may not be seeing, namely if you are on a platform without X, it will not work. Normal chromium requires a bunch of X libraries be present. It doesn't use them, but for things like headless testing, it's a massive pain, since the apt-get (or equivalent) is generally many hundreds of megabytes.
- DonHopkins 9y agoX: The First Fully Modular Software Disaster http://www.art.net/~hopkins/Don/unix-haters/x-windows/disaster.html http://www.art.net/~hopkins/Don/unix-haters/x-windows/disast...
- rbobby 9y ago> If you're using the Motif self-abuse kit hehehehehe
- twistedpair 9y agoJust grab the most recent Chrome/Chromium .deb from the dev/canary/stable channel via a cron job. Piece of cake. We do it for our services. That said, headless still has a mountain of bugs open against it, so most parties will be best suited by sticking with ChromeDriver for now.