if (FALSE) {
scrape_urls(
Urls = "https://web.archive.org/web/20201001000859/https://www.nytimes.com/section/politics",
Paths = c(title = "//article/div/h2//text()", teaser = "//article/div/p/text()"),
collapse = FALSE, archiveDate = TRUE)
scrape_urls(
Urls = "https://stackoverflow.com/questions/21167159/css-nth-match-doesnt-work",
Paths = c(ans="//div[@itemprop='text']/*", aut="//div[@itemprop='author']/span[@itemprop='name']"),
collapse = "//div[@id='answers']/div[contains(@class, 'answer')]",
nonArchive = TRUE,
encoding = "bytes")
}
Run the code above in your browser using DataLab