GetFootballData 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,393 @@
1
+ league_to_sofascore_dict = {'ENG-Premier League': ['england', 'premier-league', '17'],
2
+ 'ESP-La Liga': ['spain', 'laliga', '8'],
3
+ 'FRA-Ligue 1': ['france', 'ligue-1', '34'],
4
+ 'ITA-Serie A': ['italy', 'serie-a', '23'],
5
+ 'GER-Bundesliga': ['germany', 'bundesliga', '35'],
6
+
7
+ 'INT-FIFA World Cup': ['world', 'world-championship', '16'],
8
+ 'INT-Club Friendly Games': ['world', 'club-friendly-games', '853'],
9
+ 'INT-World Cup Qual. UEFA': ['europe', 'world-championship-qual-uefa', '11'],
10
+ 'INT-World Cup Qual. CONCACAF': ['north-central-america', 'world-championship-qual-concacaf', '14'],
11
+ 'INT-World Cup Qual. CONMEBOL': ['south-america', 'world-championship-qual-conmebol', '295'],
12
+ 'INT-World Cup Qual. CAF': ['africa', 'world-championship-qual-caf', '13'],
13
+ 'INT-World Cup Qual. AFC': ['asia', 'world-championship-qual-afc', '308'],
14
+ 'INT-EURO': ['europe', 'european-championship', '1'],
15
+ 'INT-International Friendly Games': ['world', 'int-friendly-games', '851'],
16
+ 'INT-International Friendly Games Women': ['world', 'int-friendly-games-women', '852'],
17
+ 'INT-FIFA Women\'s World Cup': ['world', 'world-championship-women', '290'],
18
+ 'INT-Women\'s Euro': ['europe', 'womens-euro', '477'],
19
+ 'World Championship Women Qual.': ['europe', 'world-championship-women-qual', '780'],
20
+ 'INT-CONCACAF Gold Cup': ['north-central-america', 'concacaf-gold-cup', '140'],
21
+ 'INT-Copa Libertadores': ['south-america', 'copa-libertadores', '16940'],
22
+
23
+ 'EUR-UEFA Champions League': ['europe', 'uefa-champions-league', '7'],
24
+ 'EUR-UEFA Europa League': ['europe', 'uefa-europa-league', '679'],
25
+ 'EUR-UEFA Conference League': ['europe', 'uefa-conference-league', '17015'],
26
+ "EUR-UEFA Women's Champions League": ['europe', 'uefa-womens-champions-league', '696'],
27
+ "EUR-UEFA Women's Europa Cup": ['europe', 'uefa-womens-europa-cup', '29194'],
28
+
29
+ 'AFG-Afghanistan Champions League': ['afghanistan', 'afghanistan-champions-league', '24194'],
30
+ 'AFG-Shafaq Shahid Premier League': ['afghanistan', 'lig-bartar-sspl', '37664'],
31
+
32
+ 'CAF-CAF Confederations Cup': ['africa', 'caf-confederations-cup', '1115'],
33
+ 'Africa-CAF Champions League': ['africa', 'caf-champions-league', '1054'],
34
+ 'Africa-CAF Confederations Cup': ['africa', 'caf-confederations-cup', '1115'],
35
+ 'Africa-Africa Cup of Nations': ['africa', 'africa-cup-of-nations', '270'],
36
+ 'Africa-Africa Cup of Nations Qual.': ['africa', 'africa-cup-of-nations-qual', '1848'],
37
+ 'Africa-African Football League': ['africa', 'african-football-league', '21048'],
38
+ 'Africa-CAF Super Cup': ['africa', 'caf-super-cup', '1250'],
39
+ 'Africa-African Nations Championship': ['africa', 'african-nations-championship', '637'],
40
+ 'Africa-COSAFA Cup': ['africa', 'cosafa-cup', '2076'],
41
+ 'Africa-U23 Africa Cup of Nations': ['africa', 'u23-africa-cup-of-nations', '981'],
42
+ 'Africa-U20 Africa Cup of Nations': ['africa', 'u20-africa-cup-of-nations', '2063'],
43
+ 'Africa-U17 Africa Cup of Nations': ['africa', 'u17-african-cup-of-nations', '25144'],
44
+ 'Africa-Women\'s Africa Cup of Nations': ['africa', 'africa-cup-of-nations-women', '9558'],
45
+ 'Africa-CAF Women\'s Champions League': ['africa', 'caf-womens-champions-league', '21446'],
46
+ 'Africa-CAF Women\'s Champions League Qualification': ['africa', 'caf-womens-champions-league-qualification', '28900'],
47
+ 'Africa-U20 Women\'s World Cup Qualification Africa': ['africa', 'u20-womens-world-cup-qualification-africa', '34449'],
48
+ 'Africa-UNAF U-20 Women\'s Tournament': ['africa', 'unaf-u-20-womens-tournament', '31222'],
49
+ 'Africa-UNAF Women\'s Champions Tournament': ['africa', 'unaf-womens-champions-tournament-2026', '36771'],
50
+
51
+ 'ALB-Abissnet Superiore': ['albania', 'abissnet-superiore', '720'],
52
+ 'ALB-Kategoria Superiore Femra': ['albania', 'kategoria-superiore-femra', '33698'],
53
+ 'ALB-U19 Abissnet Superiore': ['albania', 'u-19-abissnet-superiore', '35806'],
54
+
55
+ 'AND-Primera Divisió': ['andorra', 'primera-divisio', '742'],
56
+
57
+ 'ARG-Liga Profesional de Fútbol': ['argentina', 'liga-profesional-de-futbol', '155'],
58
+ 'ARG-Copa de la Liga Profesional': ['argentina', 'copa-de-la-liga-profesional', '13475'],
59
+ 'ARG-Copa Argentina': ['argentina', 'copa-argentina', '1024'],
60
+ 'ARG-Primera Nacional': ['argentina', 'primera-nacional', '703'],
61
+ 'ARG-Supercopa Argentina': ['argentina', 'supercopa-argentina', '1618'],
62
+ 'ARG-Campeonato de Fútbol Femenino': ['argentina', 'primera-division-women', '10495'],
63
+ 'ARG-Trofeo de Campeones de la Liga Profesional': ['argentina', 'trofeo-de-campeones-de-la-liga-profesional', '18436'],
64
+ 'ARG-Campeonato de Reserva de Primera División': ['argentina', 'campeonato-de-reserva-de-primera-division', '18817'],
65
+
66
+ 'AUT-Austrian Bundesliga': ['austria', 'bundesliga', '45'],
67
+ 'AUT-ÖFB Cup': ['austria', 'ofb-cup', '445'],
68
+ 'AUT-2. Liga': ['austria', '2-liga', '135'],
69
+ 'AUT-Frauen Bundesliga': ['austria', 'frauen-bundesliga', '9415'],
70
+ 'AUT-ÖFB Frauen Cup': ['austria', 'ofb-cup-women', '26795'],
71
+ 'AUT-U18 ÖFB Jugendliga': ['austria', 'u18-ofb-jugendliga', '35894'],
72
+
73
+ 'BEL-Pro League': ['belgium', 'pro-league', '38'],
74
+ 'BEL-Challenger Pro League': ['belgium', 'challenger-pro-league', '9'],
75
+ 'BEL-Belgian Cup': ['belgium', 'belgian-cup', '326'],
76
+ 'BEL-Belgian Super Cup': ['belgium', 'belgian-super-cup', '338'],
77
+ 'BEL-Belgian Women\'s Super League': ['belgium', 'belgian-womens-super-league', '2127'],
78
+ 'BEL-Belgian Cup Women': ['belgium', 'beker-van-belgie-women', '21422'],
79
+ 'BEL-Belgium Division 1 Women': ['belgium', 'belgium-division-1-women', '37447'],
80
+
81
+ 'BOL-División Profesional': ['bolivia', 'division-profesional', '16736'],
82
+ 'BOL-Copa Bolivia': ['bolivia', 'copa-division-profesional', '19891'],
83
+ 'BOL-Copa Simón Bolívar': ['bolivia', 'copa-simon-bolivar', '19011'],
84
+ 'BOL-Liga Nacional Sub-19': ['bolivia', 'liga-nacional-sub-19', '22711'],
85
+
86
+ 'BRA-Brasileirão Série A': ['brazil', 'brasileirao-serie-a', '325'],
87
+ 'BRA-Brasileirão Série B': ['brazil', 'brasileirao-serie-b', '390'],
88
+ 'BRA-Copa do Brasil': ['brazil', 'copa-do-brasil', '329'],
89
+ 'BRA-Supercopa do Brasil': ['brazil', 'supercopa-do-brasil', '10431'],
90
+ 'BRA-Copa do Nordeste': ['brazil', 'copa-do-nordeste', '406'],
91
+ 'BRA-Copa Verde': ['brazil', 'copa-verde', '427'],
92
+ 'BRA-Copa Sul-Sudeste': ['brazil', 'copa-sul-sudeste', '33495'],
93
+ 'BRA-U20 Campeonato Brasileiro': ['brazil', 'u20-campeonato-brasileiro', '9233'],
94
+ 'BRA-U20 Campeonato Brasileiro Série B': ['brazil', 'u20-campeonato-brasileiro-serie-b', '25276'],
95
+
96
+ 'BUL-Parva Liga': ['bulgaria', 'parva-liga', '247'],
97
+
98
+ 'CAN-Canadian Premier League': ['canada', 'canadian-premier-league', '13470'],
99
+ 'CAN-Canadian Championship': ['canada', 'canadian-championship', '9230'],
100
+ 'CAN-Northern Super League': ['canada', 'northern-super-league', '26135'],
101
+
102
+ 'CHI-Liga de Primera': ['chile', 'primera-division', '11653'],
103
+ 'CHI-Liga de Ascenso': ['chile', 'primera-b', '1240'],
104
+ 'CHI-Copa Chile': ['chile', 'copa-chile', '1221'],
105
+ 'CHI-Segunda División': ['chile', 'segunda-division', '18834'],
106
+ 'CHI-Supercopa de Chile': ['chile', 'supercopa-de-chile', '1309'],
107
+ 'CHI-Chile Primera Division Women': ['chile', 'primera-division-women', '22003'],
108
+ 'CHI-Copa de la Liga': ['chile', 'copa-de-la-liga', '32734'],
109
+ 'CHI-U20 Campeonato Nacional Formativo': ['chile', 'campeonato-nacional-formativo-proyeccion', '22430'],
110
+ 'CHI-U18 Campeonato Nacional Formativo': ['chile', 'campeonato-nacional-formativo-sub-18', '22431'],
111
+
112
+ 'CRO-HNL': ['croatia', 'hnl', '170'],
113
+ 'CRO-Croatian Cup': ['croatia', 'croatian-cup', '307'],
114
+ 'CRO-1. NL': ['croatia', '1-nl', '724'],
115
+ 'CRO-Croatian Super Cup': ['croatia', 'croatian-super-cup', '800'],
116
+ 'CRO-1. HNLŽ': ['croatia', '1-hnlz', '17212'],
117
+ 'CRO-Croatian Women\'s Football Cup': ['croatia', 'croatian-womens-football-cup', '21662'],
118
+ 'CRO-U19 Prva NL Juniori': ['croatia', 'u19-prva-nl-juniori', '28307'],
119
+
120
+ 'CZE-Czech First League': ['czech-republic', '1-liga', '172'],
121
+ 'CZE-FNL': ['czech-republic', 'fnl', '205'],
122
+ 'CZE-MOL Cup': ['czech-republic', 'czech-cup', '282'],
123
+ 'CZE-Super Cup': ['czech-republic', 'super-cup', '798'],
124
+ 'CZE-Czech Women\'s First League': ['czech-republic', '1-liga-women', '823'],
125
+ 'CZE-Czech Cup Women': ['czech-republic', 'czech-cup-women', '32358'],
126
+ 'CZE-U21': ['czech-republic', 'u21', '1303'],
127
+
128
+ 'DEN-Danish Superliga': ['denmark', 'superliga', '39'],
129
+ 'DEN-Betinia Liga': ['denmark', '1st-division', '47'],
130
+ 'DEN-Oddset Pokalen': ['denmark', 'oddset-pokalen', '76'],
131
+ 'DEN-A-Liga Women': ['denmark', 'gjensidige-kvindeliga', '9412'],
132
+ 'DEN-B-Liga Women': ['denmark', 'b-liga-women', '28169'],
133
+ 'DEN-Denmark U19 League': ['denmark', 'u19-ligaen', '28525'],
134
+
135
+ 'ECU-LigaPro Serie A': ['ecuador', 'ligapro-serie-a', '240'],
136
+ 'ECU-LigaPro Serie B': ['ecuador', 'ligapro-serie-b', '10240'],
137
+ 'ECU-Copa Ecuador': ['ecuador', 'copa-ecuador', '13684'],
138
+ 'ECU-Supercopa Ecuador': ['ecuador', 'super-copa', '14660'],
139
+ 'ECU-Ecuador Superliga Femenina': ['ecuador', 'superliga-women', '26132'],
140
+
141
+ 'EGY-Egyptian Premier League': ['egypt', 'premier-league', '808'],
142
+ 'EGY-Egyptian Second Division A': ['egypt', 'egyptian-second-division-a', '10536'],
143
+ 'EGY-Egypt Cup': ['egypt', 'egypt-cup', '2305'],
144
+ 'EGY-Egyptian League Cup': ['egypt', 'egyptian-league-cup', '18491'],
145
+ 'EGY-Egyptian Supercup': ['egypt', 'super-cup', '14688'],
146
+ 'EGY-Premier League Women': ['egypt', 'premier-league-women', '24365'],
147
+
148
+ 'ENG-Championship': ['england', 'championship', '18'],
149
+ 'ENG-Community Shield': ['england', 'community-shield', '346'],
150
+ 'ENG-League One': ['england', 'league-one', '24'],
151
+ 'ENG-League Two': ['england', 'league-two', '25'],
152
+ 'ENG-National League': ['england', 'national-league', '173'],
153
+ 'ENG-FA Cup': ['england', 'fa-cup', '19'],
154
+ 'ENG-EFL Cup': ['england', 'efl-cup', '21'],
155
+ 'ENG-Football League Trophy': ['england', 'football-league-trophy', '334'],
156
+ "ENG-Women's Super League 2": ['england', 'fa-womens-championship', '10553'],
157
+ "ENG-Women's Super League": ['england', 'the-fa-womens-super-league', '1044'],
158
+ "ENG-Women's FA Cup": ['england', 'fa-cup-women', '11666'],
159
+ 'ENG-England National League Cup': ['england', 'england-national-league-cup', '24029'],
160
+ "ENG-FA Women's League Cup": ['england', 'fa-womens-league-cup', '11667'],
161
+ 'ENG-Baller League UK': ['england', 'baller-league-uk', '25492'],
162
+ 'ENG-FA Youth Cup': ['england', 'fa-youth-cup', '24640'],
163
+
164
+ 'FRA-Ligue 2': ['france', 'ligue-2', '182'],
165
+ 'FRA-Ligue 3': ['france', 'national-1', '183'],
166
+ 'FRA-National 1': ['france', 'national-2', '28153'],
167
+ 'FRA-Coupe de France': ['france', 'coupe-de-france', '335'],
168
+ 'FRA-Trophée des Champions': ['france', 'trophee-des-champions', '339'],
169
+ 'FRA-Première Ligue Féminine': ['france', 'division-1-feminines', '1139'],
170
+ 'FRA-Coupe de France Féminine': ['france', 'coupe-de-france-women', '13330'],
171
+ 'FRA-Seconde Ligue Women': ['france', 'seconde-ligue-women', '28158'],
172
+ 'FRA-Coupe de la Ligue Women': ['france', 'coupe-de-la-ligue-women', '30848'],
173
+ 'FRA-Championnat National U19': ['france', 'championnat-national-u19', '11401'],
174
+
175
+ 'GER-2. Bundesliga': ['germany', '2-bundesliga', '44'],
176
+ 'GER-3. Liga': ['germany', '3-liga', '491'],
177
+ 'GER-DFB Pokal': ['germany', 'dfb-pokal', '217'],
178
+ 'GER-Franz Beckenbauer Supercup': ['germany', 'super-cup', '799'],
179
+ 'GER-Frauen-Bundesliga': ['germany', 'frauen-bundesliga', '232'],
180
+ 'GER-U19 DFB Nachwuchsliga': ['germany', 'a-junioren-bundesliga-playoffs', '11105'],
181
+ 'GER-U21 Bundesliga Talent Series': ['germany', 'u21-bundesliga-talent-series', '37637'],
182
+
183
+ 'GRE-Super League': ['greece', 'stoiximan-super-league', '185'],
184
+ 'GRE-Super League 2': ['greece', 'super-league-2', '186'],
185
+ 'GRE-Gamma Ethniki': ['greece', 'gamma-ethniki', '20862'],
186
+ 'GRE-Greek Football Cup': ['greece', 'greek-cup-betsson', '375'],
187
+ 'GRE-Greek Super Cup': ['greece', 'super-cup', '31346'],
188
+ 'GRE-Greece Women\'s Football League': ['greece', 'super-league-women', '10609'],
189
+ 'GRE-Greek Women\'s Cup': ['greece', 'greek-womens-cup', '31979'],
190
+ 'GRE-U19 Super League': ['greece', 'u19-super-league', '11414'],
191
+ 'GRE-U19 Super League 2': ['greece', 'u19-super-league-2', '24195'],
192
+
193
+ 'IRL-Premier Division': ['ireland', 'premier-division', '192'],
194
+ 'IRL-First Division': ['ireland', 'first-division', '193'],
195
+ 'IRL-FAI Cup': ['ireland', 'fai-cup', '195'],
196
+ 'IRL-Men\'s President\'s Cup': ['ireland', 'fai-presidents-cup', '1632'],
197
+ 'IRL-Women\'s Premier Division': ['ireland', 'premier-division-women', '20065'],
198
+ 'IRL-Women\'s FAI Cup': ['ireland', 'fai-cup-women', '22727'],
199
+ 'IRL-Women\'s President\'s Cup': ['ireland', 'ireland-womens-super-cup', '32065'],
200
+
201
+ 'ISR-Israeli Premier League': ['israel', 'israeli-premier-league', '266'],
202
+ 'ISR-Israel National League': ['israel', 'national-league', '727'],
203
+ 'ISR-Israel Super Cup': ['israel', 'israel-super-cup', '2104'],
204
+ 'ISR-State Cup': ['israel', 'state-cup', '370'],
205
+ 'ISR-Toto Cup Al': ['israel', 'league-cup-premier', '9355'],
206
+ 'ISR-Toto Cup Leumit': ['israel', 'league-cup-national', '9356'],
207
+ 'ISR-Israeli Women\'s Football League': ['israel', 'ligat-al-women', '14586'],
208
+ 'ISR-Israel U19 Premier Division': ['israel', 'u19-premier-league', '28825'],
209
+
210
+ 'ITA-Serie B': ['italy', 'serie-b', '53'],
211
+ 'ITA-Coppa Italia': ['italy', 'coppa-italia', '328'],
212
+ 'ITA-Supercoppa Italiana': ['italy', 'supercoppa-italiana', '341'],
213
+ 'ITA-Serie C, Girone A': ['italy', 'serie-c-girone-a', '11445'],
214
+ 'ITA-Serie C, Girone B': ['italy', 'serie-c-girone-b', '11447'],
215
+ 'ITA-Serie C, Girone C': ['italy', 'serie-c-girone-c', '11446'],
216
+ 'ITA-Serie C, Playoffs': ['italy', 'serie-c-playoffs', '11452'],
217
+ 'ITA-Serie C, Play-out': ['italy', 'serie-c-play-out', '13579'],
218
+ 'ITA-Coppa Italia Serie C': ['italy', 'coppa-italia-serie-c', '824'],
219
+ 'ITA-Supercoppa Serie C': ['italy', 'supercoppa-serie-c', '884'],
220
+ 'ITA-Serie A Women': ['italy', 'serie-a-femminile', '10640'],
221
+ "ITA-Serie A Women's Cup": ['italy', 'serie-a-cup-women', '27945'],
222
+ 'ITA-Serie B, Women': ['italy', 'serie-b-women', '28574'],
223
+ 'ITA-Coppa Italia Femminile': ['italy', 'coppa-italia-femminile', '13354'],
224
+ 'ITA-Supercoppa Femminile': ['italy', 'supercoppa-femminile', '21837'],
225
+ 'ITA-Campionato Primavera 1': ['italy', 'campionato-primavera-1', '2292'],
226
+ 'ITA-Campionato Primavera 2': ['italy', 'campionato-primavera-2', '10534'],
227
+ 'ITA-Primavera Cup': ['italy', 'primavera-cup', '1554'],
228
+ 'ITA-Supercoppa Primavera': ['italy', 'supercoppa-primavera', '1910'],
229
+ 'ITA-Serie A/B U18': ['italy', 'u18-campionato', '32180'],
230
+
231
+ 'MEX-Liga MX, Clausura': ['mexico', 'liga-mx-clausura', '11620'],
232
+ 'MEX-Liga MX, Apertura': ['mexico', 'liga-mx-apertura', '11621'],
233
+ 'MEX-Liga de Expansión MX': ['mexico', 'liga-de-expansion-mx', '697'],
234
+ 'MEX-Copa MX': ['mexico', 'copa-mx', '1598'],
235
+ 'MEX-Supercopa MX': ['mexico', 'supercopa-mx', '1754'],
236
+ 'MEX-Liga MX Women': ['mexico', 'liga-mx-women', '10770'],
237
+ 'MEX-U23 Liga MX Apertura': ['mexico', 'u23-liga-mx-apertura', '20710'],
238
+
239
+ 'NED-Eredivisie': ['netherlands', 'eredivisie', '37'],
240
+ 'NED-Eerste Divisie': ['netherlands', 'eerste-divisie', '131'],
241
+ 'NED-Tweede Divisie': ['netherlands', 'tweede-divisie', '11402'],
242
+ 'NED-KNVB Beker': ['netherlands', 'knvb-beker', '330'],
243
+ 'NED-Johan Cruijff Schaal': ['netherlands', 'johan-cruijff-schaal', '340'],
244
+ 'NED-Women\'s Eredivisie': ['netherlands', 'vrouwen-eredivisie', '2123'],
245
+ 'NED-KNVB Beker Women': ['netherlands', 'knvb-beker-women', '18789'],
246
+ 'NED-U21 KNVB Divisie 1': ['netherlands', 'u21-knvb-divisie-1', '17143'],
247
+ 'NED-U19 Eredivisie': ['netherlands', 'u19-eredivisie', '29890'],
248
+
249
+ 'NOR-Eliteserien': ['norway', 'eliteserien', '20'],
250
+ 'NOR-1. Division': ['norway', '1st-division', '21'],
251
+ 'NOR-2. Division': ['norway', '2nd-division', '22'],
252
+ 'NOR-NM Cup': ['norway', 'nm-cup', '19'],
253
+ 'NOR-Toppserien': ['norway', 'toppserien-women', '201'],
254
+ 'NOR-1. Division Women': ['norway', '1st-division-women', '154'],
255
+ 'NOR-Nasjonal U19 CL': ['norway', 'nasjonal-u19-cl', '21931'],
256
+
257
+ 'PAR-Primera División Apertura': ['paraguay', 'primera-division-apertura', '11540'],
258
+ 'PAR-Primera División Clausura': ['paraguay', 'primera-division-clausura', '11541'],
259
+ 'PAR-División Intermedia': ['paraguay', 'division-intermedia', '1254'],
260
+ 'PAR-Copa Paraguay': ['paraguay', 'copa-paraguay', '11542'],
261
+ 'PAR-Supercopa Paraguay': ['paraguay', 'supercopa-paraguay', '11543'],
262
+ 'PAR-Campeonato Femenino': ['paraguay', 'campeonato-femenino', '426'],
263
+
264
+ 'PER-Liga 1': ['peru', 'liga-1', '406'],
265
+ 'PER-Liga 2': ['peru', 'liga-2', '10297'],
266
+ 'PER-Liga 3': ['peru', 'liga-3', '29030'],
267
+ 'PER-Copa Perú': ['peru', 'copa-peru', '21191'],
268
+ 'PER-Supercopa Peruana': ['peru', 'supercopa-peruana', '14603'],
269
+
270
+ 'POL-Ekstraklasa': ['poland', 'ekstraklasa', '202'],
271
+ 'POL-1. Liga': ['poland', 'i-liga', '229'],
272
+ 'POL-2. Liga': ['poland', 'ii-liga', '515'],
273
+ 'POL-Polish Cup': ['poland', 'puchar-polski', '281'],
274
+ 'POL-Polish Super Cup': ['poland', 'superpuchar-polski', '511'],
275
+ 'POL-Women\'s Ekstraliga': ['poland', 'ekstraliga-women', '10499'],
276
+ 'POL-Women\'s 1. Liga': ['poland', 'orlen-i-liga-kobiet', '23249'],
277
+ 'POL-Polish Women\'s Cup': ['poland', 'puchar-polski-women', '37295'],
278
+ 'POL-U19 CLJ': ['poland', 'u19-clj', '1365'],
279
+
280
+ 'POR-Liga Portugal': ['portugal', 'liga-portugal-betclic', '238'],
281
+ 'POR-Liga Portugal 2': ['portugal', 'liga-portugal-2', '239'],
282
+ 'POR-Liga 3': ['portugal', 'liga-3', '17101'],
283
+ 'POR-Campeonato de Portugal': ['portugal', 'campeonato-de-portugal', '10093'],
284
+ 'POR-Taça de Portugal': ['portugal', 'taca-de-portugal', '336'],
285
+ 'POR-Taça da Liga': ['portugal', 'taca-da-liga', '327'],
286
+ 'POR-Supertaça': ['portugal', 'supertaca', '345'],
287
+ 'POR-Campeonato Nacional Feminino': ['portugal', 'campeonato-nacional-feminino', '224'],
288
+ 'POR-Taça de Portugal Feminina': ['portugal', 'taca-de-portugal-feminina', '24151'],
289
+ 'POR-Supertaca Women': ['portugal', 'supertaca-women', '24016'],
290
+ 'POR-Taça da Liga Feminina': ['portugal', 'taca-da-liga-feminina', '24017'],
291
+ 'POR-U23 Liga Next Gen': ['portugal', 'u23-liga-revelacao', '11341'],
292
+ 'POR-U23 Taça Revelação': ['portugal', 'u23-taca-revelacao', '13543'],
293
+ 'POR-U19 Championship': ['portugal', 'u19-championship', '1133'],
294
+ 'POR-U19 Championship II Division': ['portugal', 'u19-campeonato-nacional-ii-divisao', '23150'],
295
+
296
+ 'ROU-SuperLiga': ['romania', 'superliga', '152'],
297
+ 'ROU-Liga II': ['romania', 'liga-ii', '203'],
298
+ 'ROU-Liga III': ['romania', 'liga-iii', '204'],
299
+ 'ROU-Cupa României': ['romania', 'cupa-romaniei', '355'],
300
+ 'ROU-Supercupa României': ['romania', 'supercupa-romaniei', '698'],
301
+ 'ROU-SuperLiga Women': ['romania', 'superliga-women', '1318'],
302
+ 'ROU-Cupa României Women': ['romania', 'cupa-romaniei-women', '13719'],
303
+ 'ROU-Campionatul Național U19': ['romania', 'campionatul-national-u19', '24254'],
304
+
305
+ 'RUS-Russian Premier League': ['russia', 'premier-league', '203'],
306
+ 'RUS-First League': ['russia', '1-liga', '204'],
307
+ 'RUS-Second League Division A': ['russia', 'second-league-division-a', '1427'],
308
+ 'RUS-Russian Cup': ['russia', 'russian-cup', '21'],
309
+ 'RUS-Russian Super Cup': ['russia', 'russian-supercup', '397'],
310
+ 'RUS-Super League Women': ['russia', 'super-league-women', '165'],
311
+ 'RUS-Russian Women\'s Cup': ['russia', 'russian-womens-cup', '1650'],
312
+
313
+ 'KSA-Saudi Pro League': ['saudi-arabia', 'saudi-pro-league', '955'],
314
+ 'KSA-Saudi First Division': ['saudi-arabia', 'first-division', '958'],
315
+ 'KSA-King\'s Cup': ['saudi-arabia', 'kings-cup', '2058'],
316
+ 'KSA-Saudi Super Cup': ['saudi-arabia', 'saudi-super-cup', '2119'],
317
+ 'KSA-Saudi Women\'s Premier League': ['saudi-arabia', 'saudi-womens-premier-league', '23064'],
318
+ 'KSA-U19 Saudi Elite Development League': ['saudi-arabia', 'u19-saudi-elite-development-league', '35144'],
319
+
320
+ 'SRB-Serbian SuperLiga': ['serbia', 'superliga', '210'],
321
+ 'SRB-Serbian First League': ['serbia', 'prva-liga', '211'],
322
+ 'SRB-Serbian Cup': ['serbia', 'serbian-cup', '212'],
323
+ 'SRB-Serbian Super Cup': ['serbia', 'serbian-super-cup', '213'],
324
+ 'SRB-Serbian Women\'s Super League': ['serbia', 'serbian-womens-super-league', '23441'],
325
+ 'SRB-U19 League': ['serbia', 'u19-league', '28710'],
326
+
327
+ 'SVK-Niké Liga': ['slovakia', 'nike-liga', '192'],
328
+ 'SVK-2. Liga': ['slovakia', '2-liga', '193'],
329
+ 'SVK-Slovak Cup': ['slovakia', 'slovak-cup', '213'],
330
+ 'SVK-Slovak Super Cup': ['slovakia', 'slovak-super-cup', '214'],
331
+ 'SVK-Niké Liga Women': ['slovakia', 'nike-liga-women', '23442'],
332
+ 'SVK-U19 Slovakia League': ['slovakia', 'u19-1-liga', '1327'],
333
+
334
+ 'ESP-Segunda División': ['spain', 'segunda-division', '54'],
335
+ 'ESP-Primera Federación': ['spain', 'primera-federacion', '17073'],
336
+ 'ESP-Segunda Federación': ['spain', 'segunda-federacion', '544'],
337
+ 'ESP-Copa del Rey': ['spain', 'copa-del-rey', '329'],
338
+ 'ESP-Supercopa de España': ['spain', 'supercopa-de-espana', '494'],
339
+ 'ESP-Copa Federación': ['spain', 'copa-federacion', '17074'],
340
+ 'ESP-Liga F': ['spain', 'liga-f', '1127'],
341
+ 'ESP-Copa de SM La Reina': ['spain', 'copa-de-sm-la-reina', '11126'],
342
+ 'ESP-Supercopa Femenina': ['spain', 'supercopa-femenina', '14687'],
343
+ 'ESP-División de Honor Juvenil': ['spain', 'u19-division-de-honor-juvenil', '28749'],
344
+
345
+ 'RSA-Premiership': ['south-africa', 'premiership', '325'],
346
+ 'RSA-National First Division': ['south-africa', 'national-first-division', '326'],
347
+ 'RSA-Nedbank Cup': ['south-africa', 'nedbank-cup', '327'],
348
+ 'RSA-MTN 8': ['south-africa', 'mtn-8', '329'],
349
+ 'RSA-South African Women\'s Super League': ['south-africa', 'hollywoodbets-super-league', '23063'],
350
+
351
+ 'SWE-Allsvenskan': ['sweden', 'allsvenskan', '40'],
352
+ 'SWE-Superettan': ['sweden', 'superettan', '46'],
353
+ 'SWE-Ettan': ['sweden', 'ettan', '44'],
354
+ 'SWE-Svenska Cupen': ['sweden', 'svenska-cupen', '48'],
355
+ 'SWE-Damallsvenskan': ['sweden', 'damallsvenskan', '214'],
356
+ 'SWE-Elitettan': ['sweden', 'elitettan', '215'],
357
+ 'SWE-Svenska Cupen Women': ['sweden', 'svenska-cupen-women', '217'],
358
+ 'SWE-U19 Allsvenskan': ['sweden', 'u19-allsvenskan', '3090'],
359
+
360
+ 'SUI-Swiss Super League': ['switzerland', 'super-league', '215'],
361
+ 'SUI-Challenge League': ['switzerland', 'challenge-league', '216'],
362
+ 'SUI-Swiss Cup': ['switzerland', 'swiss-cup', '217'],
363
+ 'SUI-Swiss Promotion League': ['switzerland', 'promotion-league', '218'],
364
+ 'SUI-Swiss Women\'s Super League': ['switzerland', 'super-league-women', '219'],
365
+ 'SUI-Swiss Women\'s Cup': ['switzerland', 'schweizer-cup-women', '220'],
366
+ 'SUI-Switzerland U19 Elite League': ['switzerland', 'u19-elite', '28711'],
367
+
368
+ 'THA-Thai League 1': ['thailand', 'thai-league-1', '1032'],
369
+ 'THA-Thai League 2': ['thailand', 'thai-league-2', '10511'],
370
+ 'THA-Thai FA Cup': ['thailand', 'fa-cup', '21779'],
371
+ 'THA-Thai Women\'s League 1': ['thailand', 'thai-womens-league-1', '23120'],
372
+ 'THA-Thailand League Cup': ['thailand', 'thailand-league-cup', '23798'],
373
+
374
+ 'TUR-Trendyol Süper Lig': ['turkey', 'trendyol-super-lig', '52'],
375
+ 'TUR-Trendyol 1. Lig': ['turkey', 'trendyol-1lig', '98'],
376
+ 'TUR-Nesine 2. Lig': ['turkey', 'tff-2-lig', '97'],
377
+ 'TUR-Türkiye Kupası': ['turkey', 'turkiye-kupasi', '96'],
378
+ 'TUR-TFF Süper Kupa': ['turkey', 'tff-super-kupa', '505'],
379
+ 'TUR-Turkish Women\'s Super League': ['turkey', 'turkish-womens-super-league', '23427'],
380
+ 'TUR-Kadınlar 1. Ligi': ['turkey', '1-liga-women', '24295'],
381
+ 'TUR-U19 Elit A Ligi': ['turkey', 'u19-lig-elit-a-grup-1', '13959'],
382
+ 'TUR-U19 Elit B Ligi': ['turkey', 'u19-lig-elit-b', '13960'],
383
+
384
+ 'USA-MLS': ['usa', 'mls', '242'],
385
+ 'USA-USL Championship': ['usa', 'usl-championship', '13363'],
386
+ 'USA-USL League One': ['usa', 'usl-league-one', '13362'],
387
+ 'USA-MLS Next Pro': ['usa', 'mls-next-pro', '18641'],
388
+ 'USA-US Open Cup': ['usa', 'us-open-cup', '495'],
389
+ 'USA-National Women\'s Soccer League': ['usa', 'nwsl', '1690'],
390
+ 'USA-USL Super League': ['usa', 'usl-super-league-women', '28384'],
391
+ 'USA-NWSL Challenge Cup': ['usa', 'nwsl-challenge-cup', '14820'],
392
+ }
393
+
@@ -0,0 +1,6 @@
1
+ league_to_tm_dict = {'ENG-Premier League': ['premier-league', 'GB1'],
2
+ 'ESP-La Liga': ['laliga', 'ES1'],
3
+ 'FRA-Ligue 1': ['ligue-1', 'FR1'],
4
+ 'ITA-Serie A': ['serie-a', 'IT1'],
5
+ 'GER-Bundesliga': ['bundesliga', 'L1'],
6
+ }
@@ -0,0 +1,89 @@
1
+ season_to_starting_year = {
2
+ 1920: 2019,
3
+ 2021: 2020,
4
+ 2122: 2021,
5
+ 2223: 2022,
6
+ 2324: 2023,
7
+ 2425: 2024,
8
+ 2526: 2025,
9
+ 2627: 2026,
10
+ 2728: 2027,
11
+ 2829: 2028,
12
+ 2930: 2029,
13
+ 3031: 2030,
14
+ }
15
+
16
+ starting_year_to_season = {
17
+ 2019: 1920,
18
+ 2020: 2021,
19
+ 2021: 2122,
20
+ 2022: 2223,
21
+ 2023: 2324,
22
+ 2024: 2425,
23
+ 2025: 2526,
24
+ 2026: 2627,
25
+ 2027: 2728,
26
+ 2028: 2829,
27
+ 2029: 2930,
28
+ 2030: 3031,
29
+ }
30
+
31
+ def convert_season_to_year(year: int):
32
+ try:
33
+ return season_to_starting_year.get(year)
34
+ except:
35
+ KeyError('The year provided is not a valid key in the season_to_starting_year dict.')
36
+
37
+ def convert_year_to_season(year):
38
+ try:
39
+ return starting_year_to_season.get(year)
40
+ except:
41
+ KeyError('The year provided is not a valid key in the starting_to_season_year dict.')
42
+
43
+
44
+ year_to_fotmob_season = {
45
+ 2015: '2015/2016',
46
+ 2016: '2016/2017',
47
+ 2017: '2017/2018',
48
+ 2018: '2018/2019',
49
+ 2019: '2019/2020',
50
+ 2020: '2020/2021',
51
+ 2021: '2022/2023',
52
+ 2023: '2023/2024',
53
+ 2024: '2024/2025',
54
+ 2025: '2025/2026',
55
+ 2026: '2026/2027',
56
+ 2027: '2027/2028',
57
+ 2028: '2028/2029',
58
+ 2029: '2029/2030',
59
+ 2030: '2030/2031',
60
+ 2031: '2031/2032',
61
+ 2032: '2032/2033',
62
+ 2033: '2033/2034',
63
+ 2034: '2034/2035',
64
+ 2035: '2035/2036',
65
+ }
66
+
67
+ year_to_sofascore_season = {
68
+ 2015: '15/16',
69
+ 2016: '16/17',
70
+ 2017: '17/18',
71
+ 2018: '18/19',
72
+ 2019: '19/20',
73
+ 2020: '20/21',
74
+ 2021: '21/22',
75
+ 2022: '22/23',
76
+ 2023: '23/24',
77
+ 2024: '24/25',
78
+ 2025: '25/26',
79
+ 2026: '26/27',
80
+ 2027: '27/28',
81
+ 2028: '28/29',
82
+ 2029: '29/30',
83
+ 2030: '30/31',
84
+ 2031: '31/32',
85
+ 2032: '32/33',
86
+ 2033: '33/34',
87
+ 2034: '34/35',
88
+ 2035: '35/36',
89
+ }