-
Notifications
You must be signed in to change notification settings - Fork 158
linux服务器安装不了131版本以上的浏览器怎么办?
yong fan edited this page Dec 26, 2024
·
1 revision
可以尝试安装chrome-headless-shell 浏览器。
看 chrome-headless-shell的介绍:[以 chrome-headless-shell 下载旧版 Chrome | Blog | Chrome for Developers](https://developer.chrome.google.cn/blog/chrome-headless-shell?hl=zh-cn)
是否符合需求。
Jvppeteer 下载 chrome-headless-shell
//下载指定版本的Chrome Headless Shell
FetcherOptions fetcherOptions2 = new FetcherOptions();
fetcherOptions2.setProduct(Product.Chrome_headless_shell);
fetcherOptions2.setVersion("129.0.6668.100");
RevisionInfo revisionInfo4 = Puppeteer.downloadBrowser(fetcherOptions2);
System.out.println("revisionInfo4: " + revisionInfo4);