
fastRhockey: Functions to Access Professional Women's Hockey League and National Hockey League Play by Play Data
Source:R/fastRhockey-package.R
fastRhockey-package.RdA utility to scrape and load play-by-play data and statistics from the Professional Women's Hockey League https://www.thepwhl.com/, formerly known as the Premier Hockey Federation (PHF) or National Women's Hockey League (NWHL). Additionally, allows access to the National Hockey League's stats API https://www.nhl.com/.
Proxy support
All HTTP requests flow through an internal httr2 helper that resolves a proxy in this order:
an explicit
proxy =argument (only on wrappers that pass...);getOption("fastRhockey.proxy")– set once per session withoptions(fastRhockey.proxy = "http://host:port")and every call picks it up;the
http_proxy/https_proxy/no_proxyenvironment variables, read by libcurl when no explicit proxy is supplied.
The proxy value may be a URL string ("http://host:port") or a named list
spread into httr2::req_proxy() for authenticated proxies, e.g.
list(url = "http://host", port = 8080, username = "u", password = "p", auth = "basic"). The session-options() form is recommended when one proxy
covers many calls.
Author
Maintainer: Saiem Gilani saiem.gilani@gmail.com (ORCID)
Authors:
Ben Howell benhowell71@gmail.com
Other contributors:
Alyssa Longmuir aklongmuir@gmail.com [contributor]