jeudi 12 mai 2022

Scraping SofaScore votes using Xpath and google sheets

I'm trying to scrape the votes from SofaScore with google sheets using the importxml function.

I'm running into an issue because the class name has a random string at the end of it.

Example "class="sc-5b0433e1-5 koUsvm"

Lets use https://www.sofascore.com/washington-nationals-new-york-mets/ExbsFtc as an example link.

Typically I would just use something similar to the code below.

//div[contains(@class= 'sc-5b0433e1-5')]

Does anyone know how to go about this.




Aucun commentaire:

Enregistrer un commentaire