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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| hitchchrome-0.2.0.tar.gz | 7.5 kB | 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
|