So far I have the following code:
url <- read_html('http://www.nhl.com/stats/player?report=bios&reportType=season&seasonFrom=19671968&seasonTo=20182019&gameType=2&filter=gamesPlayed,gte,1&sort=playerBirthDate') dat2 <- html_nodes(url, '.rt-tr div') %>% html_table()
I have also tried html_text() rather than html_table() but both are returning empty lists. I'm not very familiar with web scraping so I'd love some pointers! Thanks everyone!