Learn R Programming

hoopR (version 3.1.0)

.realgm_html: Internal: fetch a RealGM page through headless Chrome (clears Cloudflare)

Description

Navigates headless Chrome to the page, waits for the Cloudflare challenge to resolve (the page title stops being "Just a moment..."), and returns the fully rendered HTML for rvest parsing.

Usage

.realgm_html(path, wait = 25)

Value

The rendered page HTML as a character string.

Arguments

path

Page path beginning with / (e.g. "/nba/players").

wait

Maximum seconds to wait for the challenge to clear.