I'm trying to scrape the following website for MLB draft data:
https://www.baseballamerica.com/draft-history/mlb-draft-database/#/
The issue is that I can't seem to find the correct class to input into rvest::html_nodes() in order to isolate the table. Using Chrome's "Inspect" tool, I've tried each of the classes that would seemingly identify the table:
library(tidyverse)
library(rvest)
url <- "https://www.baseballamerica.com/draft-history/mlb-draft-database/#/"
url %>%
read_html() %>%
html_nodes("table-container")
I've also tried "search-table draft-search-table", but I keep getting the same results: "{xml_nodeset (0)}". Any help would be greatly, greatly appreciated!