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.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91d4759d7aec5254403e92bca4d99d540a2dbcafbebb16888f16e469975492b2 |
|
MD5 | 60ee92cd96dfe24cb8bd74374c1531fa |
|
BLAKE2b-256 | 91cdfd94d101fc454e66631917c39f1b346ce49c958a8731cfcaf10762080152 |
Close
Hashes for auto_download_undetected_chromedriver-0.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b37346f880e3cc26e1f248093babcd98f1305f4932f41b9f4ab2093b98a51996 |
|
MD5 | 099a55905206de7d48f237ab02d6144e |
|
BLAKE2b-256 | dc9cb726e3b40fe04b8a47d7bb000b7837eccd2a01c16b125aaa50eda663a2d5 |