scrape | R Documentation |
Scrape the content of authorized page/API
scrape( bow, query = NULL, params = NULL, accept = "html", content = NULL, verbose = FALSE )
bow |
host introduction object of class |
query |
named list of parameters to be appended to URL in the format |
params |
deprecated. Use |
accept |
character value of expected data type to be returned by host (e.g. |
content |
MIME type (aka internet media type) used to override the content type returned by the server.
See http://en.wikipedia.org/wiki/Internet_media_type for a list of common types. You can add the |
verbose |
extra feedback from the function. Defaults to |
Object of class httr::response
which can be further processed by functions in rvest
package
library(rvest) bow("https://en.wikipedia.org/wiki/List_of_cognitive_biases") %>% scrape(content="text/html; charset=UTF-8") %>% html_nodes(".wikitable") %>% html_table()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.