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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0cad2144a5fbe02164b7c95c4bd216f5525f65ea3eca395e7a8e3d03fb8113c |
|
MD5 | fe5ec2c0a062ef9c8a324e95364728d9 |
|
BLAKE2b-256 | 701a4b71bf6967537f9093d7a98e1762f0654d66b5e1fa24fcf2f463c2558caa |
Close
Hashes for auto_download_undetected_chromedriver-0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9813797a2f4b69b7442e74cad9e96bd84356213ecec1c12456f8a40c314787de |
|
MD5 | 9b63882f77b70e82745519e08ef7d823 |
|
BLAKE2b-256 | 26602194cfc4cb88f0e81456619f257c73fb29ec550eb3503eda5ca82a3929f2 |