html_name {rvest} | R Documentation |
Get element name
Description
Get element name
Usage
html_name(x)
Arguments
x |
A document (from |
Value
A character vector the same length as x
Examples
url <- "https://rvest.tidyverse.org/articles/starwars.html"
html <- read_html(url)
html %>%
html_element("div") %>%
html_children() %>%
html_name()
[Package rvest version 1.0.4 Index]