Relative Content

Tag Archive for htmlrweb-scrapingrvest

read_html() in R not returning table from website HTML code

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.

Web scraping with dropdowns using R

I would like to extract data from the the table on this website using R for all available dates, times and states. I’m new to web scraping so I’m struggling to figure out what to extract, especially since there are dropdown menus involved in selecting the date/time/state.