Skip to main content

Build chrome and chromedriver for use with selenium

Project description

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.

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

hitchchrome-0.2.0.tar.gz (7.5 kB view details)

Uploaded Source

File details

Details for the file hitchchrome-0.2.0.tar.gz.

File metadata

  • Download URL: hitchchrome-0.2.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for hitchchrome-0.2.0.tar.gz
Algorithm Hash digest
SHA256 794583bef4e84fced98c04b7a3aeeba6c378282d6ece062e37a26dab77814ea4
MD5 e70824d6ecd45ec0a78e63bad3da0e2d
BLAKE2b-256 463cac2a6355d2fb8c8c562c03e124a54f2a2f8c8fbbf565befa9a624b27e5e3

See more details on using hashes here.

Supported by

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