Skip to contents

A 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:

  1. an explicit proxy = argument (only on wrappers that pass ...);

  2. getOption("fastRhockey.proxy") – set once per session with options(fastRhockey.proxy = "http://host:port") and every call picks it up;

  3. the http_proxy / https_proxy / no_proxy environment 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:

Other contributors: