I am new to scraping and have successfully scraped tables from these websites:-
https://www.numberfire.com/nba/daily-fantasy/daily-basketball-projections/guards
https://www.dailyfantasyfuel.com/nba/projections/draftkings/
https://www.sportsline.com/nba/expert-projections/simulation/
But this website:-
https://www.lineups.com/nba/nba-fantasy-basketball-projections
seems very tricky.
1. I have tried to read it as JSON
r <- read_html('https://www.lineups.com/nba/nba-fantasy-basketball-projections/') %>% html_element('script#__NEXT_DATA__') %>% html_text() %>% jsonlite::parse_json()
2. from rvest
methods
data <- "https://www.lineups.com/nba/nba-fantasy-basketball-projections" %>%
read_html %>%
html_nodes('script') %>%
html_text()
3. As well as RSelenium
but with no success.
Could you kindly tell me how to deal with these kinds of Tables found at "www.lineups.com" ?
Thanks