I am trying scrape data from this page https://www.flashscore.co.uk/cricket/.
Home teams have either of the following attributes:
<div class="event__participant event__participant--home">KSKS</div>
<div class="event__participant event__participant--home fontBold">Legends of Rupganj</div>
I had thought the following would allow me to use a partial match to scrape all home teams but it does not return any results. There are no errors.
homeTeam = container.find('div[class*="event__participant event__participant--home"]').text if container.find('div[class*="event__participant event__participant--home"]') else ''
What am I doing wrong?