I'm trying to scrape the table values from the link below by adjusting the calendar dates to be between two specific dates: https://markets.businessinsider.com/earnings-calendar
I use the code block below, but the last line does not work:
from selenium.webdriver.common.by import By
wd = webdriver.Chrome('chromedriver',chrome_options=chrome_options)
wd.maximize_window()
wd.get("https://markets.businessinsider.com/earnings-calendar")
wd.implicitly_wait(10)
wd.find_element(By.XPATH, "//input[@id='calendar-input-from']").click()
But I'm getting this error:
ElementNotInteractableException: Message: element not interactable
(Session info: headless chrome=101.0.4951.64)
Stacktrace:
#0 0x55f34d8af553 <unknown>
#1 0x55f34d59a067 <unknown>
#2 0x55f34d5d1741 <unknown>
#3 0x55f34d5c659a <unknown>
#4 0x55f34d5edf82 <unknown>
#5 0x55f34d5c5e36 <unknown>
#6 0x55f34d5ee3be <unknown>
#7 0x55f34d602d6c <unknown>
#8 0x55f34d5ee363 <unknown>
#9 0x55f34d5c447c <unknown>
#10 0x55f34d5c5945 <unknown>
#11 0x55f34d91f9d0 <unknown>
#12 0x55f34d8e4a38 <unknown>
#13 0x55f34d8e475c <unknown>
#14 0x55f34d8e4fc2 <unknown>
#15 0x55f34d91d71b <unknown>
#16 0x55f34d8e5221 <unknown>
#17 0x55f34d8c85b3 <unknown>
#18 0x55f34d8ee988 <unknown>
#19 0x55f34d8eeb1a <unknown>
#20 0x55f34d907a41 <unknown>
#21 0x7eff3f2796db <unknown>
Would appreciate it if someone could help me!