I am attempting to scrape the following webpage, using Selenium in Python (with Chrome Web Driver).
https://www.betexplorer.com/soccer/argentina/superliga/argentinos-jrs-talleres-cordoba/ptSIK7kB/#ah1
I only wish to collect the rows of data in which the bookmaker is Bet365.
I have been able to obtain all the rows where this is the case. However, I am struggling to scrape the information within the 'onclick' table that appears when the values are clicked:
The image above shows the table ARCHIVE ODDS, which appears when the 5.90 is clicked.
The aim is to collect the information from each table in all the rows where Bet365 is the bookmaker.
My attempt so far has been to locate all the 'onclick' links using a CSS-selector:
table_links = browser.find_elements_by_css_selector("span[onclick*='16);']")
And then to loop through each of the table_links, click each one, and scrape the data which appears using the xpath:
bet365table = []
for i in table_links:
i.click()
xx = browser.find_element_by_xpath("//TBODY[@id='aodds-tbody']")
bet365table.append(xx)
However, this fails each time with the error stating the element is not clickable.
