Browse Source

Added headless option which mysteriously disappeared

master
Jim Martens 2 months ago
parent
commit
dcaa4e3075
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/twomartens/allrisscraper/main.py

+ 1
- 0
src/twomartens/allrisscraper/main.py View File

@@ -73,6 +73,7 @@ def main() -> None:
base_url = definitions.BASE_LINKS[district]
options = Options()
options.headless = True
binary = FirefoxBinary(firefox_binary)
driver = webdriver.Firefox(firefox_binary=binary, options=options)
driver.implicitly_wait(2)


Loading…
Cancel
Save