Neurolingua commited on
Commit
4d8859f
·
verified ·
1 Parent(s): 4d0567e

Update other_function.py

Browse files
Files changed (1) hide show
  1. 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
- driver = webdriver.Chrome(options=chrome_options, executable_path='/usr/local/bin/chromedriver')
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')