[GH-ISSUE #702] [SoFifa] Not downloading league data for women leagues #149

Open
opened 2026-03-02 15:56:12 +03:00 by kerem · 2 comments
Owner

Originally created by @tomerarazy on GitHub (Sep 11, 2024).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/702

I'm trying to get league composition for Women leagues from SoFifa, but for some reason the downloaded HTML is missing the whole teams table.
Minimal code example:

sofifa = SoFIFA(data_dir=data_dir_raw, version_id="230001")
teams = sofifa.read_teams("2216")

The URL of the page it attempts to scrape is: https://sofifa.com/teams?lg=2216&r=230001&set=true
When looking at the HTML downloaded by Chrome the table is there and structure is similar to the Men's leagues.

I've uploaded the HTML file (changed to txt since github doesn't allow me to upload)

teams_2216_230001.txt

Originally created by @tomerarazy on GitHub (Sep 11, 2024). Original GitHub issue: https://github.com/probberechts/soccerdata/issues/702 I'm trying to get league composition for Women leagues from SoFifa, but for some reason the downloaded HTML is missing the whole teams table. Minimal code example: ``` sofifa = SoFIFA(data_dir=data_dir_raw, version_id="230001") teams = sofifa.read_teams("2216") ``` The URL of the page it attempts to scrape is: https://sofifa.com/teams?lg=2216&r=230001&set=true When looking at the HTML downloaded by Chrome the table is there and structure is similar to the Men's leagues. I've uploaded the HTML file (changed to txt since github doesn't allow me to upload) [teams_2216_230001.txt](https://github.com/user-attachments/files/16962787/teams_2216_230001.txt)
Author
Owner

@probberechts commented on GitHub (Oct 30, 2024):

When I try to access the URL in Chrome, I don't see a table.

sofifa com_teams_lg=2216 r=230001 set=true(iPad Pro)

<!-- gh-comment-id:2447502361 --> @probberechts commented on GitHub (Oct 30, 2024): When I try to access the URL in Chrome, I don't see a table. ![sofifa com_teams_lg=2216 r=230001 set=true(iPad Pro)](https://github.com/user-attachments/assets/b8836343-402c-44c0-a9cd-631320c4d4e6)
Author
Owner

@wbtomer commented on GitHub (Sep 10, 2025):

I finally got around looking at it - in SoFIFA you need to set gender=1 if you want to see women data, even if the league/team exists

So in this case the url should be:
https://sofifa.com/teams?lg=2216&r=230001&set=true&gender=1

Hopefully I'll get around writing a Pull request for this, but seeing how it took me about 1 year to look at this issue I'm not very optimistic...

<!-- gh-comment-id:3273389729 --> @wbtomer commented on GitHub (Sep 10, 2025): I finally got around looking at it - in SoFIFA you need to set `gender=1` if you want to see women data, even if the league/team exists So in this case the url should be: https://sofifa.com/teams?lg=2216&r=230001&set=true&gender=1 Hopefully I'll get around writing a Pull request for this, but seeing how it took me about 1 year to look at this issue I'm not very optimistic...
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/soccerdata#149
No description provided.