probberechts / soccerdata

⛏⚽ Scrape soccer data from Club Elo, ESPN, FBref, FiveThirtyEight, Football-Data.co.uk, FotMob, Sofascore, SoFIFA, Understat and WhoScored.

Home Page:https://soccerdata.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[SoFIFA] Error in setting up the scraper class

AZA-2003 opened this issue · comments

Hello, I have been getting this error whenever I set up the scraper for SoFIFA. Any idea as to what could be wrong ?
Thank you !

image

The HTML structure has been changed. You'll have to update the xpaths at line 146 and 154.

for i, node_fifa_edition in enumerate(tree.xpath("//header/div[2]/div/h2/div[1]/div/a")):

for node_fifa_update in tree.xpath("//header/div[2]/div/h2/div[2]/div/a"):

Awesome ! Thank you so much sir !