Skip to main content

Automatically fetches and downloads the appropriate Chrome version based on OS and architecture.

Project description

PyPI version License: MIT Downloads LinkedIn

ChromeFetcher

ChromeFetcher automates the process of fetching Chrome or ChromeDriver based on the operating system and architecture. It simplifies the task of downloading the appropriate version for your system.

Installation

To install ChromeFetcher, use pip:

pip install ChromeFetcher

Usage

Easily download ChromeDriver with:

from ChromeFetcher.chrome_fetcher import fetch_chrome

fetch_chrome(product='chromedriver')

Specify product as 'chrome' or 'chromedriver' to download. Options allow unzipping and cleanup post-download.

The fetch_chrome function offers a comprehensive approach to automatically downloading Chrome or ChromeDriver based on the user's operating system and architecture, streamlining the setup process for web automation tasks. Here's an overview of all the parameters available in this function:

  • channel (default='Stable'): This parameter allows users to specify the release channel of Chrome they wish to download. The default is set to 'Stable', but users can select other channels like 'Beta' or 'Dev' depending on their requirements.

  • product (default='chrome'): Determines whether to download Chrome or ChromeDriver. By setting this parameter to 'chrome', the function will download the browser. If set to 'chromedriver', it will fetch the driver needed for automation.

  • download_path (default=os.getcwd()): Specifies the directory where the downloaded file will be saved. By default, it uses the current working directory. Users can provide a custom path to suit their project structure.

  • unzip (default=True): A boolean parameter that, when set to True, automatically extracts the contents of the downloaded ZIP file. If False, the function leaves the ZIP file as is.

  • delete_zip (default=True): This parameter works in tandem with the unzip option. When set to True, it deletes the ZIP file after extraction to save space and keep the directory tidy. If unzip is False, this parameter has no effect.

Features

  • Automatically fetches Chrome or ChromeDriver.
  • Supports different OS and architectures.
  • Unzips and cleans up downloads optionally.

Contributing

Contributions, issues, and feature requests are welcome! Check our issues page.

License

Licensed under the MIT License.

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

chromefetcher-2025.5.132001.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chromefetcher-2025.5.132001-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file chromefetcher-2025.5.132001.tar.gz.

File metadata

  • Download URL: chromefetcher-2025.5.132001.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.11

File hashes

Hashes for chromefetcher-2025.5.132001.tar.gz
Algorithm Hash digest
SHA256 7e125d90e4f8506c9cf434e3c483b0b2c6d0ca9a03034aaed3e59b4821117a19
MD5 0dc2b70878f621957330e11aea4e857c
BLAKE2b-256 d8b6c767155c4dd017f6a97fb305dfce38daf4bcb64a8d08c08f59f57368fd7d

See more details on using hashes here.

File details

Details for the file chromefetcher-2025.5.132001-py3-none-any.whl.

File metadata

File hashes

Hashes for chromefetcher-2025.5.132001-py3-none-any.whl
Algorithm Hash digest
SHA256 b12b5222eb2140419aab2a9da87de1f14aab9f177cd9dfdcc45608ebe2164f93
MD5 6a24e8c63ad3e2aa11cee5f246b9e551
BLAKE2b-256 d5c241877c31ba4e31080437144c9ee8b72335ced45a38f472103978d382f153

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page