archiv: Archive a list of urls in Wayback or perma_cc.

Description Usage Arguments Value Examples

Description

Archive a list of urls in Wayback or perma_cc.

Usage

1
archiv(url_list, method = "wayback")

Arguments

url_list

A list of urls to archive.

method

Either "wayback" or "perma_cc." Defaults to "wayback."

Value

A dataframe containing the original urls, the urls to the archived website and a timestamp. For Perma.cc also the URL to the screenshot, and the short URL.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
urls <- c("https://qdr.syr.edu", "https://cran.r-project.org/", "https://apsa.net")

# archive in Wayback machine
archivedUrls <- archiv(urls)

# archive in perma.cc
set_api_key("API KEY")
set_folder_id("FOLDER ID")
archivedUrls <- archiv(urls, method="perma_cc")

## End(Not run)

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