I am trying to extract the Team Statistics and Team Analytics (5-on-5) table from https://www.hockey-reference.com/leagues/NHL_2025.html . When I use the read_html() function from the rvest package in R, the code does not include these two tables. It does include the standings table at the top of the page but not the other two.
I used read_html(“https://www.hockey-reference.com/leagues/NHL_2025.html”) and the html_text() output of the code does not include the tables in question. As well as using html_elements() with the xpath of the tables and there being no result.
Owen Gift is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.