Skip to content

Commit

Permalink
Merge pull request #18 from DataScientest-Studio/hot_fix
Browse files Browse the repository at this point in the history
updated selenium driver code with SeleniumManager
  • Loading branch information
JulienR27 authored Oct 24, 2024
2 parents cef70c8 + 7ad6b17 commit 32272fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/domain/utils/new_earnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ def get_earn_and_dividends(symbol, inference=False):
chrome_options.add_argument('--no-sandbox')
chrome_options.add_argument('--disable-dev-shm-usage')
# chrome_options.add_argument('--ignore-certificate-errors')
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options)
# driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=chrome_options) # modified on 01/08/2023, SeleniumManager now handles browser drivers
service = Service()
driver = webdriver.Chrome(service=service, options=chrome_options)
#driver = webdriver.Chrome('/home/user/drivers/chromedriver')
#Go to the website
driver.get(f'https://www.zacks.com/stock/research/{symbol}/earnings-calendar')
Expand Down

0 comments on commit 32272fc

Please sign in to comment.