Skip to content

Commit 09a5247

Browse files
committed
updates for rookie ids
1 parent 6379511 commit 09a5247

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

R/sysdata.rda

8.78 KB
Binary file not shown.

data-raw/player_directories.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ final_fft = dplyr::bind_rows(fft_data) %>%
7575
# Getting Players from last years stats
7676
# Getting links
7777
fp_pos = c("QB", "RB", "WR", "TE", "K", "DST", "DL", "LB", "DB")
78-
last_year = 2022
78+
last_year = 2023
7979

8080
fp_lastyr_links = paste0("https://www.fantasypros.com/nfl/stats/",
8181
tolower(fp_pos), ".php?year=", last_year)
@@ -233,7 +233,7 @@ rm(list = ls(pattern = "^fp_"))
233233

234234

235235
# testing new NFL method because they have not updated player ids on player page
236-
season = 2023
236+
season = 2024
237237
week = ffanalytics:::get_scrape_week()
238238
pos = c("QB", "RB", "WR", "TE", "K")
239239

@@ -447,7 +447,7 @@ gc()
447447

448448
curr_ids = ffanalytics:::player_ids
449449

450-
my_fl_ids = httr::GET("https://api.myfantasyleague.com/2023/export?TYPE=players&L=&APIKEY=&DETAILS=1&SINCE=&PLAYERS=&JSON=1") %>%
450+
my_fl_ids = httr::GET("https://api.myfantasyleague.com/2024/export?TYPE=players&L=&APIKEY=&DETAILS=1&SINCE=&PLAYERS=&JSON=1") %>%
451451
httr::content() %>%
452452
`[[`("players") %>%
453453
`[[`("player") %>%

data-raw/player_directories2.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ gc()
139139

140140
curr_ids = ffanalytics:::player_ids
141141

142-
my_fl_ids = httr::GET("https://api.myfantasyleague.com/2023/export?TYPE=players&L=&APIKEY=&DETAILS=1&SINCE=&PLAYERS=&JSON=1") %>%
142+
my_fl_ids = httr::GET("https://api.myfantasyleague.com/2024/export?TYPE=players&L=&APIKEY=&DETAILS=1&SINCE=&PLAYERS=&JSON=1") %>%
143143
httr::content() %>%
144144
`[[`("players") %>%
145145
`[[`("player") %>%

0 commit comments

Comments
 (0)