安装指定版本Chrome和Chrome Driver

查找版本

https://raw.githubusercontent.com/Bugazelle/chromium-all-old-stable-versions/master/chromium.stable.json
根据driver版本,找到Linux版本之后可以根据链接直接下载(有梯子)
例如:

 "114.0.5735.90": {
            "position": 1135570, 
            "download_position": 1135561, 
            "download_prefix": "https://www.googleapis.com/storage/v1/b/chromium-browser-snapshots/o?delimiter=/&prefix=Linux_x64/1135561/&fields=items(kind,mediaLink,metadata,name,size,updated),kind,prefixes,nextPageToken", 
            "position_url": "https://omahaproxy.appspot.com/deps.json?version=114.0.5735.90", 
            "download_url": "https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F1135561%2Fchrome-linux.zip?generation=1682460989187924&alt=media", 
            "driver_download_url": "https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Linux_x64%2F1135561%2Fchromedriver_linux64.zip?generation=1682460993294765&alt=media"
        }, 

解压安装

sudo unzip Linux_x64_1135561_chrome-linux.zip -d /opt
sudo unzip Linux_x64_1135561_chromedriver_linux64.zip -d /opt
echo 'export PATH=$PATH:/opt/chrome-linux:/opt/chromedriver_linux64' | sudo tee  /etc/profile.d/chrome.sh
soure /etc/profile
posted @ 2023-09-20 16:39  YueQAQ  阅读(476)  评论(0编辑  收藏  举报