Metadata-Version: 2.1
Name: py-chromedriver-autoinstaller
Version: 1.0.0
Summary: Automatically install chromedriver that supports the currently installed version of chrome.
Home-page: https://github.com/farhaanaliii/py-chromedriver-autoinstaller
Author: Farhan Ali
Author-email: i.farhanali.dev@gmail.com
License: MIT
Keywords: chromedriver chrome chromium selenium
Classifier: Development Status :: 5 - Production/Stable
Classifier: Topic :: Software Development :: Testing
Classifier: Topic :: System :: Installation/Setup
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: packaging>=23.1

# py-chromedriver-installer  

This repository is a fork of [python-chromedriver-autoinstaller](https://github.com/yeongbin-jo/python-chromedriver-autoinstaller), renamed to **py-chromedriver-installer**. It improves upon the original by fixing issues with detecting Chrome versions on Windows and introducing a new function to retrieve the download URL for Chromedriver.

## Key Updates  
- **Fixed:** Detection of Chrome versions on Windows.  
- **New Feature:** Added the `get_driver_url` function.  

### `get_driver_url` Function  
This function retrieves the download URL for Chromedriver without performing the actual download. It serves as an alternative to the existing `download_chromedriver` function.  

```python
def get_download_url(path: Optional[AnyStr] = None, no_ssl: bool = False):
```

---

## Installation  

```bash
pip install py-chromedriver-installer
```  

## Usage  
Import `py-chromedriver-installer` to automatically handle Chromedriver installation or fetch the driver URL.

### Example: Auto-Installation  
```python
from selenium import webdriver
import py_chromedriver_installer  

py_chromedriver_installer.install()  # Automatically downloads the correct version of Chromedriver,
                                     # then adds it to PATH.

driver = webdriver.Chrome()
driver.get("http://www.python.org")
assert "Python" in driver.title
```  

### Example: Get Chromedriver Download URL  
```python
from py_chromedriver_installer import get_driver_url  

url = get_driver_url()  # Retrieves the Chromedriver download URL for the current Chrome version.
print("Chromedriver download URL:", url)
```  

---

## Authors & Contributors  

- **Farhan Ali** <[i.farhanali.dev@gmail.com](mailto:i.farhanali.dev@gmail.com)>  
  *Added new features and updates to improve functionality.*  
- **CHIDA** <[iam.yeongbin.jo@gmail.com](mailto:iam.yeongbin.jo@gmail.com)>  
- **shawnCaza** <[theshawn@gmail.com](mailto:theshawn@gmail.com)>  
