py-chromedriver-autoinstaller


Namepy-chromedriver-autoinstaller JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/farhaanaliii/py-chromedriver-autoinstaller
SummaryAutomatically install chromedriver that supports the currently installed version of chrome.
upload_time2024-12-16 15:21:09
maintainerNone
docs_urlNone
authorFarhan Ali
requires_python>=3.6
licenseMIT
keywords chromedriver chrome chromium selenium
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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)>  

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/farhaanaliii/py-chromedriver-autoinstaller",
    "name": "py-chromedriver-autoinstaller",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "chromedriver chrome chromium selenium",
    "author": "Farhan Ali",
    "author_email": "i.farhanali.dev@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d0/5a/9bd445c5d874d2e3ba1564d3ed03f3eb1b27751ec616c9291451afc18d43/py_chromedriver_autoinstaller-1.0.0.tar.gz",
    "platform": null,
    "description": "# py-chromedriver-installer  \n\nThis 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.\n\n## Key Updates  \n- **Fixed:** Detection of Chrome versions on Windows.  \n- **New Feature:** Added the `get_driver_url` function.  \n\n### `get_driver_url` Function  \nThis function retrieves the download URL for Chromedriver without performing the actual download. It serves as an alternative to the existing `download_chromedriver` function.  \n\n```python\ndef get_download_url(path: Optional[AnyStr] = None, no_ssl: bool = False):\n```\n\n---\n\n## Installation  \n\n```bash\npip install py-chromedriver-installer\n```  \n\n## Usage  \nImport `py-chromedriver-installer` to automatically handle Chromedriver installation or fetch the driver URL.\n\n### Example: Auto-Installation  \n```python\nfrom selenium import webdriver\nimport py_chromedriver_installer  \n\npy_chromedriver_installer.install()  # Automatically downloads the correct version of Chromedriver,\n                                     # then adds it to PATH.\n\ndriver = webdriver.Chrome()\ndriver.get(\"http://www.python.org\")\nassert \"Python\" in driver.title\n```  \n\n### Example: Get Chromedriver Download URL  \n```python\nfrom py_chromedriver_installer import get_driver_url  \n\nurl = get_driver_url()  # Retrieves the Chromedriver download URL for the current Chrome version.\nprint(\"Chromedriver download URL:\", url)\n```  \n\n---\n\n## Authors & Contributors  \n\n- **Farhan Ali** <[i.farhanali.dev@gmail.com](mailto:i.farhanali.dev@gmail.com)>  \n  *Added new features and updates to improve functionality.*  \n- **CHIDA** <[iam.yeongbin.jo@gmail.com](mailto:iam.yeongbin.jo@gmail.com)>  \n- **shawnCaza** <[theshawn@gmail.com](mailto:theshawn@gmail.com)>  \n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Automatically install chromedriver that supports the currently installed version of chrome.",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/farhaanaliii/py-chromedriver-autoinstaller"
    },
    "split_keywords": [
        "chromedriver",
        "chrome",
        "chromium",
        "selenium"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c837757d319b9da925d3b56babd79ed8a8ab6141c416eccf1359d9f8dcbe73e2",
                "md5": "ef10dc5d860e4f65e4f8da0e55a1c910",
                "sha256": "2afb73c1d5f8c9d185583287f1e0631bada28b581f9782e12c1fc9ecdd627ee7"
            },
            "downloads": -1,
            "filename": "py_chromedriver_autoinstaller-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ef10dc5d860e4f65e4f8da0e55a1c910",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 8275,
            "upload_time": "2024-12-16T15:21:07",
            "upload_time_iso_8601": "2024-12-16T15:21:07.618029Z",
            "url": "https://files.pythonhosted.org/packages/c8/37/757d319b9da925d3b56babd79ed8a8ab6141c416eccf1359d9f8dcbe73e2/py_chromedriver_autoinstaller-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d05a9bd445c5d874d2e3ba1564d3ed03f3eb1b27751ec616c9291451afc18d43",
                "md5": "3bcc736b6febe7fbd9c64285ce7de0f8",
                "sha256": "645f9a8e90238b4d63b779fa1b62e52b1f0ce7a0fc10b213e089179254ee8a14"
            },
            "downloads": -1,
            "filename": "py_chromedriver_autoinstaller-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3bcc736b6febe7fbd9c64285ce7de0f8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 7295,
            "upload_time": "2024-12-16T15:21:09",
            "upload_time_iso_8601": "2024-12-16T15:21:09.162100Z",
            "url": "https://files.pythonhosted.org/packages/d0/5a/9bd445c5d874d2e3ba1564d3ed03f3eb1b27751ec616c9291451afc18d43/py_chromedriver_autoinstaller-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-16 15:21:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "farhaanaliii",
    "github_project": "py-chromedriver-autoinstaller",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "py-chromedriver-autoinstaller"
}
        
Elapsed time: 0.43986s