Collect.web | R Documentation |
Collects hyperlinks from web pages and structures the data into a dataframe with the class names
"datasource"
and "web"
.
## S3 method for class 'web' Collect(credential, pages = NULL, writeToFile = FALSE, verbose = FALSE, ...) collect_web_hyperlinks(pages = NULL, writeToFile = FALSE, verbose = FALSE, ...)
credential |
A |
pages |
Dataframe. Dataframe of web pages to crawl. The dataframe must have the columns |
writeToFile |
Logical. Write collected data to file. Default is |
verbose |
Logical. Output additional information. Default is |
... |
Additional parameters passed to function. Not used in this method. |
A tibble
object with class names "datasource"
and "web"
.
## Not run: pages <- tibble::tibble(page = c("http://vosonlab.net", "https://rsss.cass.anu.edu.au"), type = c("int", "all"), max_depth = c(2, 2)) webData <- webAuth |> Collect(pages, writeToFile = TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.