When scraping data with rvest one will typically extract text from nodes. This functions helps doing so. It makes sure, that multiple p are parsed into one object. This is important, when parsing different-length items into one dataframe.

extract_text(node, class)

Arguments

node

node

class

css class to parse

Examples

if (FALSE) {
"https://forummuenchen.org/lgbtiq-chronik/" %>%
  read_html() %>%
  html_nodes(".timeline-item") %>%
  extract_text("p")
}