[R] Web-scraping newbie - dynamic table into R?
j|@r@ch @end|ng |rom gm@||@com
Sat Apr 18 22:50:02 CEST 2020
How do I scrape the last 10 Keno draws from the Georgia lottery into R?
I'm trying to pull the last 10 draws of a Keno lottery game into R. I've
read several tutorials on how to scrape websites using the rvest package,
Chrome's Inspect Element, and CSS or XPath, but I'm likely stuck because
I started with:
> Kenopage <- "
> Keno <- Read.hmtl(Kenopage)
>From there, I've been unable to progress, despite hours spend on
combinations of CSS and XPath calls with "html_notes."
Failed example: DrawNumber <- Keno %>% rvest::html_nodes("body") %>%
xml2::xml_find_all("//span[contains(@class,'Draw Number')]") %>%
Someone mentioned using the V8 package in R, but it's new to me.
How do I get started?
cell phone: 804/363-2161
email: JFarach using gmail.com
[[alternative HTML version deleted]]
More information about the R-help