Skip to main content

HitchChrome

If you've ever had a problem with not having a chromedriver installed or your version of chromedriver not matching your installed version of chrome or some annoying obscure "browser fails to start with selenium" error that only starts happening randomly a day before you want to release because somebody ran a system upgrade, this is the package for you.

HitchChrome is a self contained package that will download and install its own isolated version of of Chrome and ChromeDriver that will work together and won't randomly break when somebody upgrades something.

HitchChrome is part of the hitchdev framework.

How?

First, build into a directory of your choice:

from hitchchrome import ChromeBuild

chrome_build = ChromeBuild("./chrome83", "83")
chrome_build.ensure_built()

Then use, either with GUI:

driver = chrome_build.webdriver()
driver.get("http://www.google.com")
driver.quit()

Or headless:

driver = chrome_build.webdriver(headless=True)
driver.get("http://www.google.com")
driver.quit()

Work to be done soon

  • Currently only works with Chromium stable version 83. Should work with multiple stable versions.
  • Only works with linux (should "just work" with mac soon).

Caveats

Requires aria2 to be installed (to download chrome + chromedriver). You need apt-get install aria2.

Metadata

Release files for hitchchrome 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hitchchrome 0.2.0
File Size Uploaded Provenance
hitchchrome-0.2.0.tar.gz 7.5 kB Without provenance Details

Release files / hitchchrome-0.2.0.tar.gz

Download URL hitchchrome-0.2.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
794583bef4e84fced98c04b7a3aeeba6c378282d6ece062e37a26dab77814ea4
BLAKE2b-256 checksum
How to use checksums
463cac2a6355d2fb8c8c562c03e124a54f2a2f8c8fbbf565befa9a624b27e5e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.2

Security for hitchchrome 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page