diff --git a/Pipfile b/Pipfile index ec2dcaf..48cfdc2 100644 --- a/Pipfile +++ b/Pipfile @@ -48,6 +48,7 @@ urllib3 = "1.26.18" # pegged to avoid test issue selenium = "*" webdriver-manager = "*" cryptography = "*" +cffi = "*" [requires] python_version = "3.9" diff --git a/Pipfile.lock b/Pipfile.lock index 1db95f9..c45e363 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "67ec31b6f377f1d04461f5704cc029e94b59ca4ebadb8e0410e2d5dfd4b5b0e1" + "sha256": "97514245fa0e583a4df6a75006e4df2e6bcea0c920307691473a44e765a5ac3f" }, "pipfile-spec": 6, "requires": { @@ -111,7 +111,8 @@ "sha256:f7f5baafcc48261359e14bcd6d9bff6d4b28d9103847c9e136694cb0501aef87", "sha256:fc48c783f9c87e60831201f2cce7f3b2e4846bf4d8728eabe54d60700b318a0b" ], - "markers": "platform_python_implementation != 'PyPy'", + "index": "pypi", + "markers": "python_version >= '3.8'", "version": "==1.17.1" }, "charset-normalizer": { diff --git a/warn/scrapers/va.py b/warn/scrapers/va.py index 1cce6b4..949d7e9 100644 --- a/warn/scrapers/va.py +++ b/warn/scrapers/va.py @@ -111,6 +111,9 @@ def scrape( # driver = webdriver.Chrome(options=chromeoptionsholder, service=Service(ChromeDriverManager().install())) logger.debug("Attempting to launch Chrome") chromeoptionsholder = ChromeOptions() + chromeoptionsholder.add_argument("--no-sandbox") + chromeoptionsholder.add_argument("--remote-debugging-pipe") + chrome_install = ChromeDriverManager().install() # Weird error with finding the driver name in Windows. Sometimes.