Skip to content

Commit

Permalink
Merge pull request #682 from biglocalnews/va-679v3
Browse files Browse the repository at this point in the history
Require pyopenssl; disable Chrome dev-shm-usage
  • Loading branch information
stucka authored Dec 23, 2024
2 parents 489b524 + 30153e9 commit 865063c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ selenium = "*"
webdriver-manager = "*"
cryptography = "*"
cffi = "*"
pyopenssl = "*"

[requires]
python_version = "3.9"
Expand Down
11 changes: 10 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def run(self):
"pdfplumber",
"requests",
"openpyxl",
"pyopenssl",
"retry",
"selenium",
"tenacity",
Expand Down
1 change: 1 addition & 0 deletions warn/scrapers/va.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ def scrape(
logger.debug("Attempting to launch Chrome")
chromeoptionsholder = ChromeOptions()
chromeoptionsholder.add_argument("--no-sandbox")
chromeoptionsholder.add_argument("--disable-dev-shm-usage")
chromeoptionsholder.add_argument("--remote-debugging-pipe")

chrome_install = ChromeDriverManager().install()
Expand Down

0 comments on commit 865063c

Please sign in to comment.