'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.
Solution 1:[1]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | player0 |