Update get_real_home_listing.py
Browse files- get_real_home_listing.py +2 -1
get_real_home_listing.py
CHANGED
@@ -19,7 +19,8 @@ def get_home_listings(selected_il, price_value):
|
|
19 |
|
20 |
|
21 |
firefox_options = FirefoxOptions()
|
22 |
-
firefox_options.add_argument("--headless") # Run
|
|
|
23 |
|
24 |
service = FirefoxService(GeckoDriverManager().install())
|
25 |
driver = Firefox(service=service, options=firefox_options)
|
|
|
19 |
|
20 |
|
21 |
firefox_options = FirefoxOptions()
|
22 |
+
firefox_options.add_argument("--headless") # Run headless
|
23 |
+
firefox_options.binary_location = "/usr/bin/firefox" # Run Firefox in headless mode
|
24 |
|
25 |
service = FirefoxService(GeckoDriverManager().install())
|
26 |
driver = Firefox(service=service, options=firefox_options)
|