I am currently attempting to scrape this website https://schedule.townsville-port.com.au/
I would like to scrape the text in all the individual tooltips.
Here is what the html for the typical element I have to hover looks like
<div event_id="55591" class="dhx_cal_event_line past_event" style="position:absolute; top:2px; height: 42px; left:1px; width:750px;"><div>
Here is what the typical html for the tooltip looks like
<div class="dhtmlXTooltip tooltip" style="visibility: visible; left: 803px; bottom:74px;
I have tried various combinations such as attempting to scrape the tooltips directly and also attempting to scrape the html by hovering over where I need to hover.
tool_tips=driver.find_elements_by_class_name("dhx_cal_event_line past_event")
tool_tips=driver.find_elements_by_xpath("//div[@class=dhx_cal_event_line past_event]")
tool_tips=driver.find_element_by_css_selector("dhx_cal_event_line past_event")
I have also attempted the same code with "dhtmlXTooltip tooltip" instead of "dhx_cal_event_line past_event"
I really don't understand why.
tool_tips=driver.find_elements_by_class_name("dhx_cal_event_line past_event")
Doesn't work.
Can Beautifulsoup be used to tackle this? Since the html is dynamic and changing?