Skip to content

Commit 97896ab

Browse files
committed
updating internals for new season
1 parent 43bae81 commit 97896ab

4 files changed

Lines changed: 6 additions & 2 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: ffanalytics
22
Type: Package
33
Title: Scrape Data For Fantasy Football
4-
Version: 3.1.5.0000
4+
Version: 3.1.6.0000
55
Authors@R: c(person("Dennis", "Andersen",
66
email = "andersen.dennis@outlook.com",
77
role = c("aut")),

R/source_scrapes.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ scrape_fantasysharks <- function(pos = c("QB", "RB", "WR", "TE", "K", "DST", "DL
229229
}
230230
# historical scrapes (doesn't work)
231231
year = dplyr::case_when(
232+
season == 2025 ~ 842,
232233
season == 2024 ~ 810,
233234
season == 2023 ~ 778,
234235
season == 2022 ~ 746,

R/sysdata.rda

-7.9 KB
Binary file not shown.

data-raw/player_directories2.R

Lines changed: 4 additions & 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/2024/export?TYPE=players&L=&APIKEY=&DETAILS=1&SINCE=&PLAYERS=&JSON=1") %>%
142+
my_fl_ids = httr::GET("https://api.myfantasyleague.com/2025/export?TYPE=players&L=&APIKEY=&DETAILS=1&SINCE=&PLAYERS=&JSON=1") %>%
143143
httr::content() %>%
144144
`[[`("players") %>%
145145
`[[`("player") %>%
@@ -265,6 +265,9 @@ nflr_ids = nflreadr::load_ff_playerids() %>%
265265
curr_ids = curr_ids %>%
266266
left_join(nflr_ids, c("id" = "mfl_id"))
267267

268+
curr_ids = curr_ids[!grepl("\\.(x|y)", names(curr_ids))]
269+
270+
268271

269272
# Writing temp file
270273
temp_file = tempfile(fileext = ".rds")

0 commit comments

Comments
 (0)