I'm trying to write R code that in a loop extracts the Daily Observations table over a few months from this website : https://www.wunderground.com/history/daily/KMESTEUB5/date/2020-6-1. However, I'm struggling to get the data from the web page. When reading the HTML of the webpage in R with code such as
url <- glue("https://www.wunderground.com/history/daily/KMESTEUB5/date/{year}-{month}-{day}")
html <- read_html(url)
the actual data is no where to be found among the HTML nodes. I used "Inspect" on the webpage in Chrome and found where in the HTML the table is. Shown Here. However, in the HTML code that R loads in, the nodes stop before the table, with the last one being the node for 'observation-title'. I am stuck as to why R does not load in all of the HTML. I have tried multiple functions to read the webpage, but all have ended with the same results. Any help would be greatly appreciated.