Description Usage Arguments Value Examples
View source: R/body_img_urls.R
Given a valid HTML/XML document, node set or single node, a
claracter vector of all <body>
<img src>
URLs will be returned.
If base
is not NULL
all relative URLs will be converted
to absolute URLs.
1 | body_img_urls(x, unique = FALSE, base = NULL)
|
x |
Either a document, a node set or a single node. |
unique |
if |
base |
if not |
character vector of extracted URLs; if no <img>
src
URLs were discovered
charactrer(0)
will be returned.
1 2 | x <- rvest::read_html("https://congress.gov/") %>%
body_img_urls(x,unique = TRUE, base = "https://congress.gov/")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.