inst/httptest/redact.R

httptest::set_redactor(
  function(response){
    httptest::gsub_response(response,"https\\://fantasy.espn.com/apis/v3/games/ffl/","espn/") %>%
      httptest::gsub_response("https\\://api.myfantasyleague.com/","mfl/") %>%
      httptest::gsub_response("https\\://api.sleeper.app/","sleeper/") %>%
      httptest::gsub_response("https\\://www.fleaflicker.com/","flea/") %>%
      httptest::gsub_response("https\\://github.com/DynastyProcess/data/raw/master/files/","gh_dynastyprocess/")
  }
)

Try the ffscrapr package in your browser

Any scripts or data that you put into this service are public.

ffscrapr documentation built on Feb. 16, 2023, 10:55 p.m.