webarchive-page-downloader
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i webarchive-page-downloader

Weekly Downloads

5

Version

1.0.4

License

MIT

Unpacked Size

13.4 kB

Total Files

17

Last publish

Collaborators

  • theroman