Skip to content

ikreymer/pywb-ipfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pywb-ipfs

Very experimental demo of recording WARC data to IPFS

Requires redis (for now) and IPFS (of course).

Uses new (experimental) live rec system for writing WARCs

Installation

  1. pip install -r requirements.txt

  2. Start ipfs daemon (if not already running) ipfs daemon

  3. uwsgi uwsgi.ini

  4. http://localhost:9080/record/example.com/ to record a url

  5. http://localhost:9080/replay/example.com/ to replay the recording. If all goes well, the replay will be served from a WARC record stored in IPFS.

WARC records are recorded to a local dir, then uploaded to IPFS and removed.

The index of all WARC records written to IPFS is available (as a text file) under the redis key ipfs:cdxj and also available as the current IPNS registered name, so ipfs name resolve will return the hash of the current index. The index is put into IPFS every 30 seconds, though a real time index is updated in Redis first (and hence the need for redis).

Redis is used for CDXJ (indexing) for recording and replay, but a copy is also written to IPFS.

About

Experimental recording and replay of WARCs to/from IPFS (https://ipfs.io/)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages