diff --git a/app/utils/xpath.py b/app/utils/xpath.py index c385a2c..6adde93 100644 --- a/app/utils/xpath.py +++ b/app/utils/xpath.py @@ -71,7 +71,10 @@ class MarketValue: RANKINGS_POSITIONS = "//span[contains(@class, 'quick-fact__content--large')]//text()" class Transfers: - YOUTH_CLUBS = "//div[@data-viewport='Jugendvereine']//div//text()" + YOUTH_CLUBS = ( + "//div[@class='box tm-player-additional-data'][descendant::*[contains(text(), 'Youth')]]" + "//div[@class='content']//text()" + ) class Stats: ROWS = "//table[@class='items']//tbody//tr" diff --git a/tests/players/test_players_profile.py b/tests/players/test_players_profile.py index 4077599..e2c6cc6 100644 --- a/tests/players/test_players_profile.py +++ b/tests/players/test_players_profile.py @@ -68,7 +68,7 @@ def test_get_player_profile_8198(len_greater_than_0): "url": And(str, len_greater_than_0), "name": And(str, len_greater_than_0), "description": And(str, len_greater_than_0), - "nameInHomeCountry": And(str, len_greater_than_0), + "fullName": And(str, len_greater_than_0), "imageURL": And(str, len_greater_than_0), "dateOfBirth": And(str, len_greater_than_0), "placeOfBirth": {