有什么办法可以获取最新的 chrome 版本吗?

Vla*_*nic 1 python selenium google-chrome

我正在用 python 编写一个简单的程序,我需要获取最新版本的 Chrome。但我无法在任何地方找到如何获取最新版本的 Chrome。有没有办法以编程方式获取最新版本的 Chrome?

Dav*_*iao 5

Chrome 团队的官方链接。 https://chromedriver.storage.googleapis.com/LATEST_RELEASE
这提供了最新的 Chrome 发行版本

我编写了一个简单的 Python 函数,从上述源获取最新版本。

import requests

def get_chrome_latest_release():
    url = "https://chromedriver.storage.googleapis.com/LATEST_RELEASE"
    response = requests.request("GET", url)
    return response.text

print(get_chrome_latest_release())
Run Code Online (Sandbox Code Playgroud)

测试结果如下。

78.0.3904.70
Run Code Online (Sandbox Code Playgroud)

希望这可以帮助。