View source: R/scraping-parsing.R
extract_text | R Documentation |
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)
node |
node |
class |
css class to parse |
## Not run: "https://forummuenchen.org/lgbtiq-chronik/" %>% read_html() %>% html_nodes(".timeline-item") %>% extract_text("p") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.