@@ -73,8 +73,12 @@ def season() -> int:
73
73
"""Set Yahoo Fantasy Sports season for testing."""
74
74
75
75
# season = 2012
76
+ # season = 2013
76
77
# season = 2014
77
78
# season = 2015
79
+ # season = 2016
80
+ # season = 2017
81
+ # season = 2018
78
82
# season = 2019
79
83
# season = 2020
80
84
# season = 2021
@@ -97,10 +101,11 @@ def chosen_week() -> int:
97
101
def chosen_date () -> str :
98
102
"""Set Yahoo Fantasy Sports chosen date for testing."""
99
103
100
- chosen_date = "2013-04-15" # NHL - 2013 (for 2012)
101
- # chosen_date = "2013-04-16 " # NHL - 2013
102
- # chosen_date = "2021-10-25" # NHL - 2021
104
+ # HOCKEY
105
+ # chosen_date = "2013-04-15 " # NHL - 2013 (for 2012 season)
106
+ chosen_date = "2021-10-25" # NHL - 2021
103
107
108
+ # BASEBALL
104
109
# chosen_date = "2021-04-01" # MLB - 2021
105
110
# chosen_date = "2022-04-10" # MLB - 2022
106
111
@@ -111,15 +116,19 @@ def chosen_date() -> str:
111
116
def league_id () -> str :
112
117
"""Set Yahoo Fantasy Sports league ID for testing."""
113
118
114
- # league_id = "907359" # NFL - 2015 (testing for league with divisions)
119
+ # FOOTBALL
120
+ # league_id = "907359" # NFL - 2015 (divisions)
115
121
# league_id = "79230" # NFL - 2019
116
122
# league_id = "655434" # NFL - 2020
117
123
# league_id = "413954" # NFL - 2021
124
+ # league_id = "791337" # NFL - 2022 (divisions)
118
125
league_id = "321958" # NFL - 2023
119
126
127
+ # HOCKEY
120
128
# league_id = "69624" # NHL - 2012
121
129
# league_id = "101592" # NHL - 2021
122
130
131
+ # BASEBALL
123
132
# league_id = "40134" # MLB - 2021
124
133
125
134
return league_id
@@ -129,16 +138,23 @@ def league_id() -> str:
129
138
def game_id () -> int :
130
139
"""Set Yahoo Fantasy Sports game ID for testing."""
131
140
141
+ # FOOTBALL
132
142
# game_id = 331 # NFL - 2014
133
- # game_id = 348 # NFL - 2015 (testing for league with divisions)
143
+ # game_id = 348 # NFL - 2015 (divisions)
144
+ # game_id = 359 # NFL - 2016
145
+ # game_id = 371 # NFL - 2017
146
+ # game_id = 380 # NFL - 2018
134
147
# game_id = 390 # NFL - 2019
135
148
# game_id = 399 # NFL - 2020
136
149
# game_id = 406 # NFL - 2021
150
+ # game_id = 414 # NFL - 2022 (divisions)
137
151
game_id = 423 # NFL - 2023
138
152
153
+ # HOCKEY
139
154
# game_id = 303 # NHL - 2012
140
155
# game_id = 411 # NHL - 2021
141
156
157
+ # BASEBALL
142
158
# game_id = 404 # MLB - 2021
143
159
# game_id = 412 # MLB - 2022
144
160
@@ -149,16 +165,23 @@ def game_id() -> int:
149
165
def game_key () -> str :
150
166
"""Set Yahoo Fantasy Sports game key for testing."""
151
167
168
+ # FOOTBALL
152
169
# game_key = "331" # NFL - 2014
153
- # game_key = "348" # NFL - 2015 (testing for league with divisions)
170
+ # game_key = "348" # NFL - 2015 (divisions)
171
+ # game_key = "359" # NFL - 2016
172
+ # game_key = "371" # NFL - 2017
173
+ # game_key = "380" # NFL - 2018
154
174
# game_key = "390" # NFL - 2019
155
175
# game_key = "399" # NFL - 2020
156
176
# game_key = "406" # NFL - 2021
177
+ # game_key = "414" # NFL - 2022 (divisions)
157
178
game_key = "423" # NFL - 2023
158
179
180
+ # HOCKEY
159
181
# game_key = "303" # NHL - 2012
160
182
# game_key = "411" # NHL - 2021
161
183
184
+ # BASEBALL
162
185
# game_key = "404" # MLB - 2021
163
186
# game_key = "412" # MLB - 2022
164
187
@@ -169,10 +192,13 @@ def game_key() -> str:
169
192
def game_code () -> str :
170
193
"""Set Yahoo Fantasy Sports game code for testing."""
171
194
195
+ # FOOTBALL
172
196
game_code = "nfl" # NFL
173
197
198
+ # HOCKEY
174
199
# game_code = "nhl" # NHL
175
200
201
+ # BASEBALL
176
202
# game_code = "mlb" # MLB
177
203
178
204
return game_code
@@ -182,8 +208,10 @@ def game_code() -> str:
182
208
def team_id () -> int :
183
209
"""Set Yahoo Fantasy Sports team ID for testing."""
184
210
211
+ # FOOTBALL
185
212
team_id = 1 # NFL
186
213
214
+ # HOCKEY
187
215
# team_id = 2 # NHL (2012)
188
216
189
217
return team_id
@@ -193,8 +221,10 @@ def team_id() -> int:
193
221
def team_name () -> str :
194
222
"""Set Yahoo Fantasy Sports team name for testing."""
195
223
224
+ # FOOTBALL
196
225
team_name = "Legion" # NFL
197
226
227
+ # HOCKEY
198
228
# team_name = "The Bateleurs" # NHL (2012)
199
229
200
230
return team_name
@@ -204,12 +234,15 @@ def team_name() -> str:
204
234
def player_id () -> int :
205
235
"""Create and set Yahoo Fantasy Sports player ID for testing."""
206
236
237
+ # FOOTBALL
207
238
player_id = 30123 # NFL: Patrick Mahomes - 2020/2021/2023
208
239
240
+ # HOCKEY
209
241
# player_id = 4588 # NHL: Braden Holtby - 2012
210
242
# player_id = 8205 # NHL: Jeffrey Viel - 2021
211
243
# player_id = 3637 # NHL: Alex Ovechkin - 2021
212
244
245
+ # BASEBALL
213
246
# player_id = 9897 # MLB: Tim Anderson - 2021/2022
214
247
215
248
return player_id
@@ -229,6 +262,5 @@ def league_player_limit() -> int:
229
262
"""Set Yahoo Fantasy Sports league player retrieval limit for testing."""
230
263
231
264
league_player_limit = 101
232
- # league_player_limit = 2610
233
265
234
266
return league_player_limit
0 commit comments