Skip to content

Commit

Permalink
updates for rookie ids
Browse files Browse the repository at this point in the history
  • Loading branch information
atungate committed May 21, 2024
1 parent 6379511 commit 09a5247
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file modified R/sysdata.rda
Binary file not shown.
6 changes: 3 additions & 3 deletions data-raw/player_directories.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ final_fft = dplyr::bind_rows(fft_data) %>%
# Getting Players from last years stats
# Getting links
fp_pos = c("QB", "RB", "WR", "TE", "K", "DST", "DL", "LB", "DB")
last_year = 2022
last_year = 2023

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


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

Expand Down Expand Up @@ -447,7 +447,7 @@ gc()

curr_ids = ffanalytics:::player_ids

my_fl_ids = httr::GET("https://api.myfantasyleague.com/2023/export?TYPE=players&L=&APIKEY=&DETAILS=1&SINCE=&PLAYERS=&JSON=1") %>%
my_fl_ids = httr::GET("https://api.myfantasyleague.com/2024/export?TYPE=players&L=&APIKEY=&DETAILS=1&SINCE=&PLAYERS=&JSON=1") %>%
httr::content() %>%
`[[`("players") %>%
`[[`("player") %>%
Expand Down
2 changes: 1 addition & 1 deletion data-raw/player_directories2.R
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ gc()

curr_ids = ffanalytics:::player_ids

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

0 comments on commit 09a5247

Please sign in to comment.