Skip to content

Commit 47fac5d

Browse files
feat: add test stats and urls
1 parent dcdabcb commit 47fac5d

File tree

3 files changed

+296
-3
lines changed

3 files changed

+296
-3
lines changed

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ __pycache__
44

55
# Data
66

7-
# data/json/players_stats.json
8-
# data/json/players_stats_dataflow_compatible.json
9-
# data/json/players_urls.json
7+
data/json/players_stats.json
8+
data/json/players_stats_dataflow_compatible.json
9+
data/json/players_urls.json

data/json/players_stats_dev.json

Lines changed: 288 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,288 @@
1+
[
2+
{
3+
"id": "158023",
4+
"name": "Lionel Andrés Messi Cuccittini",
5+
"short_name": "L. Messi",
6+
"photo_url": "https://cdn.sofifa.com/players/158/023/21_120.png",
7+
"primary_position": "RW",
8+
"positions": ["RW", "ST", "CF"],
9+
"age": "33",
10+
"birth_date": "1987/Jun/24",
11+
"height": 170,
12+
"weight": 72,
13+
"Overall Rating": 93,
14+
"Potential": 93,
15+
"Value": "€103.5M",
16+
"Wage": "€560K",
17+
"Preferred Foot": "Left",
18+
"Weak Foot": 4,
19+
"Skill Moves": 4,
20+
"International Reputation": 5,
21+
"Work Rate": "Medium/ Low",
22+
"Body Type": "Unique",
23+
"Real Face": "Yes",
24+
"Release Clause": "€212.2M",
25+
"teams": { "FC Barcelona": 84, "Argentina": 83 },
26+
"attacking": {
27+
"Crossing": 85,
28+
"Finishing": 95,
29+
"HeadingAccuracy": 70,
30+
"ShortPassing": 91,
31+
"Volleys": 88
32+
},
33+
"skill": {
34+
"Dribbling": 96,
35+
"Curve": 93,
36+
"FKAccuracy": 94,
37+
"LongPassing": 91,
38+
"BallControl": 96
39+
},
40+
"movement": {
41+
"Acceleration": 91,
42+
"SprintSpeed": 80,
43+
"Agility": 91,
44+
"Reactions": 94,
45+
"Balance": 95
46+
},
47+
"power": {
48+
"ShotPower": 86,
49+
"Jumping": 68,
50+
"Stamina": 72,
51+
"Strength": 69,
52+
"LongShots": 94
53+
},
54+
"mentality": {
55+
"Aggression": 44,
56+
"Interceptions": 40,
57+
"Positioning": 93,
58+
"Vision": 95,
59+
"Penalties": 75,
60+
"Composure": 50
61+
},
62+
"defending": {
63+
"DefensiveAwareness": 96,
64+
"StandingTackle": 32,
65+
"SlidingTackle": 35
66+
},
67+
"goalkeeping": {
68+
"GKDiving": 24,
69+
"GKHandling": 6,
70+
"GKKicking": 11,
71+
"GKPositioning": 15,
72+
"GKReflexes": 14
73+
},
74+
"player_traits": [
75+
"Finesse Shot",
76+
"Long Shot Taker (AI)",
77+
"Speed Dribbler (AI)",
78+
"Playmaker (AI)",
79+
"Outside Foot Shot",
80+
"One Club Player",
81+
"Team Player",
82+
"Chip Shot (AI)"
83+
],
84+
"player_hashtags": [
85+
"#Dribbler",
86+
"#Distance Shooter",
87+
"#FK Specialist",
88+
"#Acrobat",
89+
"#Clinical Finisher",
90+
"#Complete Forward"
91+
],
92+
"logos": {
93+
"country": {
94+
"name": "Argentina",
95+
"url": "https://cdn.sofifa.com/flags/ar.png"
96+
},
97+
"club": {
98+
"name": "FC Barcelona",
99+
"url": "https://cdn.sofifa.com/teams/241/60.png"
100+
},
101+
"nationalClub": {
102+
"name": "Argentina",
103+
"url": "https://cdn.sofifa.com/teams/1369/60.png"
104+
}
105+
}
106+
},
107+
{
108+
"id": "246",
109+
"name": "Paul Scholes",
110+
"short_name": "P. Scholes",
111+
"photo_url": "https://cdn.sofifa.com/players/000/246/13_120.png",
112+
"primary_position": "CAM",
113+
"positions": ["CM", "CDM"],
114+
"age": "37",
115+
"birth_date": "1974/Nov/16",
116+
"height": 171,
117+
"weight": 71,
118+
"Overall Rating": 80,
119+
"Potential": 80,
120+
"Value": "€400K",
121+
"Wage": "€40K",
122+
"Preferred Foot": "Right",
123+
"Weak Foot": 3,
124+
"Skill Moves": 3,
125+
"International Reputation": 2,
126+
"Work Rate": "Medium/ Medium",
127+
"Body Type": "Normal (170-)",
128+
"Real Face": "Yes",
129+
"teams": { "Manchester United": 82 },
130+
"attacking": {
131+
"Crossing": 83,
132+
"Finishing": 65,
133+
"HeadingAccuracy": 72,
134+
"ShortPassing": 89,
135+
"Volleys": 85
136+
},
137+
"skill": {
138+
"Dribbling": 75,
139+
"Curve": 74,
140+
"FKAccuracy": 67,
141+
"LongPassing": 90,
142+
"BallControl": 87
143+
},
144+
"movement": {
145+
"Acceleration": 53,
146+
"SprintSpeed": 53,
147+
"Agility": 68,
148+
"Reactions": 82,
149+
"Balance": 82
150+
},
151+
"power": {
152+
"ShotPower": 88,
153+
"Jumping": 64,
154+
"Stamina": 34,
155+
"Strength": 63,
156+
"LongShots": 84
157+
},
158+
"mentality": {
159+
"Aggression": 87,
160+
"Interceptions": 79,
161+
"Positioning": 83,
162+
"Vision": 91,
163+
"Penalties": 77,
164+
"Composure": 58
165+
},
166+
"defending": { "Marking": 49, "StandingTackle": 36, "SlidingTackle": 7 },
167+
"goalkeeping": {
168+
"GKDiving": 12,
169+
"GKHandling": 5,
170+
"GKKicking": 15,
171+
"GKPositioning": 8
172+
},
173+
"player_traits": [
174+
"Dives Into Tackles (AI)",
175+
"Long Passer (AI)",
176+
"Playmaker (AI)",
177+
"One Club Player",
178+
"Team Player"
179+
],
180+
"player_hashtags": ["#Playmaker "],
181+
"logos": {
182+
"country": {
183+
"name": "England",
184+
"url": "https://cdn.sofifa.com/flags/gb-eng.png"
185+
},
186+
"club": {
187+
"name": "Manchester United",
188+
"url": "https://cdn.sofifa.com/teams/11/60.png"
189+
}
190+
}
191+
},
192+
{
193+
"id": "202126",
194+
"name": "Harry Kane",
195+
"short_name": "H. Kane",
196+
"photo_url": "https://cdn.sofifa.com/players/202/126/21_120.png",
197+
"primary_position": "ST",
198+
"positions": ["ST"],
199+
"age": "26",
200+
"birth_date": "1993/Jul/28",
201+
"height": 188,
202+
"weight": 89,
203+
"Overall Rating": 89,
204+
"Potential": 90,
205+
"Value": "€123M",
206+
"Wage": "€230K",
207+
"Preferred Foot": "Right",
208+
"Weak Foot": 5,
209+
"Skill Moves": 3,
210+
"International Reputation": 3,
211+
"Work Rate": "High/ High",
212+
"Body Type": "Unique",
213+
"Real Face": "Yes",
214+
"Release Clause": "€242.9M",
215+
"teams": { "Tottenham Hotspur": 82, "England": 83 },
216+
"attacking": {
217+
"Crossing": 75,
218+
"Finishing": 94,
219+
"HeadingAccuracy": 86,
220+
"ShortPassing": 84,
221+
"Volleys": 85
222+
},
223+
"skill": {
224+
"Dribbling": 81,
225+
"Curve": 83,
226+
"FKAccuracy": 68,
227+
"LongPassing": 86,
228+
"BallControl": 85
229+
},
230+
"movement": {
231+
"Acceleration": 66,
232+
"SprintSpeed": 69,
233+
"Agility": 69,
234+
"Reactions": 90,
235+
"Balance": 73
236+
},
237+
"power": {
238+
"ShotPower": 91,
239+
"Jumping": 79,
240+
"Stamina": 84,
241+
"Strength": 84,
242+
"LongShots": 86
243+
},
244+
"mentality": {
245+
"Aggression": 81,
246+
"Interceptions": 44,
247+
"Positioning": 93,
248+
"Vision": 86,
249+
"Penalties": 91,
250+
"Composure": 50
251+
},
252+
"defending": {
253+
"DefensiveAwareness": 91,
254+
"StandingTackle": 63,
255+
"SlidingTackle": 36
256+
},
257+
"goalkeeping": {
258+
"GKDiving": 38,
259+
"GKHandling": 8,
260+
"GKKicking": 10,
261+
"GKPositioning": 11,
262+
"GKReflexes": 14
263+
},
264+
"player_traits": [
265+
"Leadership",
266+
"Long Passer (AI)",
267+
"Long Shot Taker (AI)",
268+
"Playmaker (AI)",
269+
"Outside Foot Shot",
270+
"Team Player"
271+
],
272+
"player_hashtags": ["#Distance Shooter", "#Clinical Finisher"],
273+
"logos": {
274+
"country": {
275+
"name": "England",
276+
"url": "https://cdn.sofifa.com/flags/gb-eng.png"
277+
},
278+
"club": {
279+
"name": "Tottenham Hotspur",
280+
"url": "https://cdn.sofifa.com/teams/18/60.png"
281+
},
282+
"nationalClub": {
283+
"name": "England",
284+
"url": "https://cdn.sofifa.com/teams/1318/60.png"
285+
}
286+
}
287+
}
288+
]

data/json/players_urls_dev.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[
2+
{ "player_url": "/player/158023" },
3+
{ "player_url": "/player/246" },
4+
{ "player_url": "/player/202126" }
5+
]

0 commit comments

Comments
 (0)