From 362b32ad4d61064400e2a49e8769605f78038b43 Mon Sep 17 00:00:00 2001
From: Russell Jarvis <rjjarvis@asu.edu>
Date: Mon, 22 Jun 2020 19:51:49 +1000
Subject: [PATCH] blah

---
 scrape.py | 25 ++++++++-----------------
 1 file changed, 8 insertions(+), 17 deletions(-)

diff --git a/scrape.py b/scrape.py
index 5f89590..6c22c82 100644
--- a/scrape.py
+++ b/scrape.py
@@ -51,26 +51,17 @@ from io import StringIO
 import io
 
 from selenium.webdriver.firefox.options import Options
+from selenium.common.exceptions import NoSuchElementException
 
 options = Options()
 options.headless = True
-#try:
-#    driver = webdriver.Firefox(executable_path='/usr/local/bin/geckodriver',options=options)
-#except:
-driver = webdriver.Firefox(options=options)
-
-#options = Options()
-#options.headless = True
-"""
-chrome_options = webdriver.ChromeOptions()
-chrome_options.add_argument('--no-sandbox')
-chrome_options.add_argument('--headless')
-chrome_options.add_argument('--disable-gpu')
-driver = webdriver.Chrome(executable_path='/usr/local/bin/chromedriver',chrome_options=chrome_options)
-#driver = webdriver.Chrome(chrome_options=chrome_options)
-driver.implicitly_wait(10)
-"""
-from selenium.common.exceptions import NoSuchElementException
+try:
+    driver = webdriver.Firefox(options=options)
+except:
+    GECKODRIVER_PATH="app/vendor/geckodriver/geckodriver"
+
+    driver = webdriver.Firefox(options=options,executable_path=GECKODRIVER_PATH)
+
 
 
 
-- 
GitLab