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
Works on Windows / MacOS thanks to @sdfgsdfgd
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
File details
Details for the file auto_download_undetected_chromedriver-0.16.tar.gz
.
File metadata
- Download URL: auto_download_undetected_chromedriver-0.16.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75b44dc9da92bed701e7ff6f1860505156b7fb1de288d382632bd6df4cc976f1 |
|
MD5 | d4e6b7995ca314bf1f6fbf6efd921649 |
|
BLAKE2b-256 | edbd1aee382774a627b7345936080cff606e3f933d75bbe0b62e08b40e0c6195 |
File details
Details for the file auto_download_undetected_chromedriver-0.16-py3-none-any.whl
.
File metadata
- Download URL: auto_download_undetected_chromedriver-0.16-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cbed589891846e3bf2ddef4748d80342a794e627917c56b953df321845981f6 |
|
MD5 | 0a8c318537c989891ba64cde00e2cb59 |
|
BLAKE2b-256 | 852bf2e5b7c8fb4ecfa179429a818f0c6c960bf7b26223f8f917953936692589 |