The elements in the web-page I'm scraping are found by one of two x_paths even though the elements are almost the same. Basically, some of the elements have an icon next to them and some of them don't. But I'm not interested in the icon, I'm just scraping the numbers next to it.
For data with an icon I use:
driver.find_elements_by_xpath('//a[@class="in-match"]')
For data without an icon, I use:
driver.find_elements_by_xpath('//td[@class="table-main__detail-odds table-main__detail-odds--first"]')
I need my scraper to be able to look for either of these two things. It is important that it looks for them simultaneously so that the order scraped is the same as the order that the data appears on the page.
This seems like a simple question, but I'm really not sure how to do it.
Thanks.