Spaces:
Sleeping
Sleeping
Update other_function.py
Browse files- other_function.py +2 -2
other_function.py
CHANGED
@@ -125,8 +125,8 @@ def get_rates():
|
|
125 |
chrome_options.add_argument("--enable-automation")
|
126 |
|
127 |
# Initialize the WebDriver with the headless option
|
128 |
-
|
129 |
-
|
130 |
|
131 |
# Open the website
|
132 |
driver.get('https://www.kisandeals.com/mandiprices/ALL/TAMIL-NADU/ALL')
|
|
|
125 |
chrome_options.add_argument("--enable-automation")
|
126 |
|
127 |
# Initialize the WebDriver with the headless option
|
128 |
+
service = Service('/usr/local/bin/chromedriver')
|
129 |
+
driver = webdriver.Chrome(service=service, options=chrome_options)
|
130 |
|
131 |
# Open the website
|
132 |
driver.get('https://www.kisandeals.com/mandiprices/ALL/TAMIL-NADU/ALL')
|