webarchive-page-downloader
v1.0.4
Published
Get archive history of a page and download pages from [web.archive.org](https://web.archive.org)
Downloads
21
Readme
web.archive.org page downloader
Get archive history of a page and download pages from web.archive.org
Get history
import {
getPageArchiveHistory,
getArchivedPage
} from 'webarchive-page-downloader'
// ...
const history = await getPageArchiveHistory('www.google.com')
/*
{
urlKey: 'com,google)/',
timestamp: 19981111184551,
originalUrl: 'http://google.com:80/',
mimeType: 'text/html',
statusCode: 200,
digest: 'HOQ2TGPYAEQJPNUA6M4SMZ3NGQRBXDZ3',
length: 381
}
...
*/
Download page at timestamp
const pageContent = await getArchivedPage('www.google.com', 19981111184551)