I couldn't figure out a nice way to determine a suitable revision number to use with Puppeteer Sharp.
What I did was use the version lookup feature on the "OmahaProxy - Google Chrome" site. I looked-up the version of Chrome I'm running on my computer. [That seems like a reasonable starting point.] I assumed (guessed) that the "Branch Base Position" shown in the version info was a revision number.
I then opened the Chromium continuous builds archive and looked for a build for the revision around the revision number I found from the "OmahaProxy" site.
Is there a better way to find or pick a suitable revision number?
Puppeteer is always bundled with a specific revision of a specific version. I usually check the release information on Github where the expected Chromium version and revision is specified. For example:
v1.17.0
Big Changes
- Chromium 76.0.3803.0 (r662092)
Then to download the right one,
Go to Chromium browser snapshots
Choose the directory of your platform (e.g., Linux_x64
)
Copy the revision number into the "Filter:" field without the "r" (e.g., 662092
)
Download the .zip
file you need.
The URL template below can be just plugged in with the right information:
https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=
<platform>
/
<revision>
/
For example: https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Linux_x64/662092/
The most common issue on Linux is missing dependencies, and the Puppeteer "Troubleshooting" document specifies all the Linux dependencies. (See apt
instructions for Ubuntu.)
curl
needs -L
when downloading on the console. See Stackoverflow thread.
When one is using puppeteer-core
,
you will then need to call
puppeteer.connect(\[options\])
orpuppeteer.launch(\[options\])
with an explicitexecutablePath
option.
(from puppeteer
vs puppeteer-core
)
Puppeteer requires number which correspond Chromium browser build snapshot number. You can get the latest snapshot number here:
or you can view all available snapshots here:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With