# NOT RUN {
url <- "https://en.wikipedia.org/w/index.php?title=The_Lego_Movie&oldid=998422565"
html <- read_html(url)
cast <- html_elements(html, "tr:nth-child(8) .plainlist a")
cast %>% html_text2()
cast %>% html_attrs()
cast %>% html_attr("href")
# If needed, use url_absolute() to convert to complete urls
url_absolute(html_attr(cast, "href"), url)
# }
Run the code above in your browser using DataLab