Description Usage Arguments Value Examples
Combine whitelisted sources and referrers with additional data extracted from a website
1 | pc_combine(..., url_column = "landingPagePath", sheet = "combine", wait = 0.1)
|
... |
Named functions |
url_column |
Name of the column to be used for the input url. |
wait |
Seconds to wait between each write call. Used to prevent Google Drive API errors. |
Nothing, used for its side effects (fills relevant column in the 'combine' spreadsheet)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
pc_combine(url = "https://www.europeandatajournalism.eu/eng/News/Data-news/The-price-of-coastal-flood-mitigation-in-Europe",
title = function(url) {
pc_extract_from_web(url = url,
container = "h1")
},
date = function(url) {
pc_extract_from_web(url = url,
container = "div",
container_class = "date") %>%
stringr::str_remove(pattern = "[[:alpha:]]+") %>%
anytime::anydate()}
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.