Open drasbaek opened 10 months ago
Yeah this one is problematic... There's no real way around this other than introducing extra page loads to get the relevant league for that particular season... currently, the league is extracted from the relevant season's transfer page, but this league value is for the current league
Given transfermarkt page loads (and then scraping) is already pretty slow, I'm not overly keen on introducing additional page loads.
Will leave this open for now until a neater solution presents itself.
The
tm_team_transfers(team_url, transfer_window = "all")
function returns the team's current league rather than the one the team played in, in the given season.For example:
Gives the correct transfers for the season but not the correct league for each row (Is Premier League, should be League One)
Session info: