Estimate the Age of Web Resources
Methods are provided to read 'URL' metadata and scan web archives/use web archive 'APIs' to determine the approxate age of the resource.
The following functions are implemented:
carbondate
: Carbon date a URL/URIget_date_from_url
: Locate and retrieve publication date from a URLget_earliest_mementos
: Retrieve the earliest mementos for a URL/URIget_earliest_pubdate
: Retrieve the earliest "pubdate" for a URLget_last_modified
: Retrieve the last-modified headercarbondate()
function to wrap up everythingdevtools::install_github("hrbrmstr/carbondater")
options(width=120)
library(carbondater) library(tidyverse) # current verison packageVersion("carbondater")
(x <- carbondate("https://rud.is/b/2013/12/27/points-polygons-and-power-outages/")) glimpse(x) (x <- carbondate("http://www.cs.odu.edu")) glimpse(x) (x <- carbondate("http://example.org/")) glimpse(x) (x <- carbondate("http://www.cnn.com/2011/10/28/living/ways-to-look-better-is/index.html")) glimpse(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.