archiv.fromUrl: Save the links in a url in perma.cc or Wayback.

Description Usage Arguments Value Examples

Description

Save the links in a url in perma.cc or Wayback.

Usage

1
archiv.fromUrl(url, method = "wayback", except = NULL)

Arguments

url

The url to extract links from.

method

Either "wayback," "perma_cc" or "both".

except

A regular expression for URLs to exclude from extraction

Value

a dataframe containing the url, availability, archived url(s) and timestamp(s)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
# Wayback
archivedURLs <- archiv.fromUrl(
     "https://www-cs-faculty.stanford.edu/~knuth/retd.html",
     except="validator\\.w3\\.org"
     )

#perma.cc
set_api_key("API KEY")
set_folder_id("42")
archivedURLs <- archiv.fromUrl(
     "https://www-cs-faculty.stanford.edu/~knuth/retd.html",
     method="perma_cc"
     )

## End(Not run)

QualitativeDataRepository/archivr documentation built on Feb. 9, 2022, 8:32 p.m.