Script to automatically download the right undetected chromedriver version
Project description
Script to automatically download the right undetected chromedriver version
pip install auto-download-undetected-chromedriver
How to use:
$pip install auto-download-undetected-chromedriver
Args:
folder_path_for_exe (str): The path to the folder where the ChromeDriver executable will be saved.
undetected (bool, optional): Apply the undetected patch to the downloaded ChromeDriver binary. Defaults to True.
arm (bool, optional): If True, download the ARM architecture version of ChromeDriver for Mac. Defaults to False.
force_update (bool, optional): Force the update of the ChromeDriver binary, even if it's already present. Defaults to True.
dowloadurl (str, optional): URL to the JSON file containing download links for ChromeDriver versions.
Defaults to the official repository URL (https://googlechromelabs.github.io/chrome-for-testing/latest-patch-versions-per-build-with-downloads.json).
Returns:
str: The path to the downloaded and possibly patched ChromeDriver executable.
Note:
- The function detects the operating system and Chrome version to download the appropriate ChromeDriver version.
- If 'undetected' is True, the function patches the ChromeDriver binary with an additional console log message to make it harder to detect.
- Use the returned executable path to start ChromeDriver with the provided options.
Example:
from auto_download_undetected_chromedriver import download_undetected_chromedriver
folder_path = "c:\\download2thisfolder"
chromedriver_path = download_undetected_chromedriver(folder_path, undetected=True, arm=False, force_update=True)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for auto_download_undetected_chromedriver-0.11.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8a23a50fad1176dadf26f966766874ec00d0489672ae1ddb562339d9fd16c31 |
|
MD5 | bf31d36a5fbbbc8e7838de5a6a4d1faa |
|
BLAKE2b-256 | f57d741992b94ef7e9fdbaf488e02ea7cdecc24fa296c4199d381a31d392582c |
Close
Hashes for auto_download_undetected_chromedriver-0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c5fc5739324369fa72de3774a527be69accc86efc5987676bdfd125223ea379 |
|
MD5 | e746c05a79b083e6e9c36e5109ff1b0e |
|
BLAKE2b-256 | 370cd950b36ec3163abcec7ef0bebce0311a52ae18b14ab17fcb5465c95dacd3 |