ragnar_find_links {ragnar} | R Documentation |
Find links on a page
Description
Find links on a page
Usage
ragnar_find_links(
x,
depth = 0L,
children_only = TRUE,
progress = TRUE,
...,
url_filter = identity
)
Arguments
x |
URL, HTML file path, or XML document. For Markdown, convert to HTML
using |
depth |
Integer specifying how many levels deep to crawl for links. When
|
children_only |
Logical or string. If |
progress |
Logical, draw a progress bar if |
... |
Currently unused. Must be empty. |
url_filter |
A function that takes a character vector of URL's and may
subset them to return a smaller list. This can be useful for filtering out
URL's by rules different them |
Value
A character vector of links on the page.
Examples
## Not run:
ragnar_find_links("https://r4ds.hadley.nz/base-R.html")
ragnar_find_links("https://ellmer.tidyverse.org/")
ragnar_find_links("https://ellmer.tidyverse.org/", depth = 2)
ragnar_find_links("https://ellmer.tidyverse.org/", depth = 2, children_only = FALSE)
ragnar_find_links(
paste0("https://github.com/Snowflake-Labs/sfquickstarts/",
"tree/master/site/sfguides/src/build_a_custom_model_for_anomaly_detection"),
children_only = "https://github.com/Snowflake-Labs/sfquickstarts",
depth = 1
)
## End(Not run)