升级到最新版:
pip install UpdateChromeDriver --index-url https://pypi.org/simple/ -U
目前本库仅在Windows上测试通过,Mac不敢确认,欢迎使用Mac的童鞋测试。
核心用法示例:
import time
from UpdateChromeDriver import *
options = webdriver.ChromeOptions()
options.add_experimental_option(
'excludeSwitches', ['enable-logging', 'enable-automation'])
browser = getChromeBrowser(options)
browser.get("https://www.baidu.com/")
time.sleep(2)
所有版本的驱动会下载到 ~\.cache\selenium,可以按需清理。
下载来源:https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json
其他功能
获取当前操作系统的平台:
from UpdateChromeDriver import os_type
print(os_type())
获取当前谷歌游览器的版本:
from UpdateChromeDriver import get_browser_version_from_os
print(get_browser_version_from_os())
Metadata
Release files for UpdateChromeDriver 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| UpdateChromeDriver-0.0.3.tar.gz | 4.4 kB | Without provenance | Details for UpdateChromeDriver-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| UpdateChromeDriver-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for UpdateChromeDriver-0.0.3-py3-none-any.whl |
Total release size: 9.2 kB
Release files / UpdateChromeDriver-0.0.3.tar.gz
| Download URL | UpdateChromeDriver-0.0.3.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9dfdebe9e7f388336828047cc9aa6af453c58ebc57b3892d1a1c13a3f32c81e0
|
|
BLAKE2b-256 checksum How to use checksums |
12b0f05871f7ef6f84b3f4dcf49c22bf4c126ec7566f991b8095c542e91306aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.5
|
Release files / UpdateChromeDriver-0.0.3-py3-none-any.whl
| Download URL | UpdateChromeDriver-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f17acee8e29aa71e2077127254e80730462bbbd9355dd3b26f1d21b3b5866c0b
|
|
BLAKE2b-256 checksum How to use checksums |
1ca68eacfb09c8bb584cba881c2bbb6d0b55d88b1cae479adec4a0e588890f28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.5
|
Security for UpdateChromeDriver 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.