View source: R/cas_get_sitemap.R
cas_get_sitemap | R Documentation |
Searches in common locations (namely, example.com/sitemap.xml
, and
example.com/sitemap_index.xml
) and then in robots.txt and returns a url to
the sitemap, along with the contents of the sitemap itself, if found.
cas_get_sitemap(
domain = NULL,
sitemap_url = NULL,
check_robots = TRUE,
check_common = TRUE,
read_from_db = TRUE,
write_to_db = FALSE,
db_connection = NULL,
disconnect_db = FALSE,
...
)
domain |
Defaults to |
sitemap_url |
Defaults to |
db_connection |
Defaults to NULL. If NULL, uses local SQLite database. If given, must be a connection object or a list with relevant connection settings (see example). |
... |
Passed to |
A data frame, including a sitemap_url
column, the response as an
httr2 object, and the body of the xml.
if (interactive()) {
cas_get_sitemap(domain = "https://www.europeandatajournalism.eu/")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.