powered by
Get element name
html_name(x)
A document (from read_html()), node set (from html_elements()), node (from html_element()), or session (from session()).
read_html()
html_elements()
html_element()
session()
A character vector the same length as x
x
# NOT RUN { url <- "https://rvest.tidyverse.org/articles/starwars.html" html <- read_html(url) html %>% html_element("div") %>% html_children() %>% html_name() # }
Run the code above in your browser using DataLab