Archivebox: Create an archivebox server page with a UI & REST API endpoint to add links to the archive

Created on 22 Apr 2019  路  3Comments  路  Source: ArchiveBox/ArchiveBox

Page Requirements

  • [x] ability to add a single page to the archive (like echo <url> | archivebox add)
  • [x] ability to import a list of pages / feed of URLs into the archive (like archivebox add <url>)
  • [X] link to the homepage of the index /
  • [X] link to the django admin list of URLs for editing the archive /admin/
  • [X] link to the archivebox github repo & documentation

Setup

To set up your dev environment, run the following:

pip3 install --upgrade pip setuptools virtualenv pipenv

cd ~/path/to/ArchiveBox
git checkout django
git pull

pipenv install
pip install -e

Then to create a new collection and run the server, do:

mkdir data
cd data/
archivebox init
archivebox add https://example.com
archivebox info

archivebox server
# then open: http://127.0.0.1:8000

To edit the templates you can change files in:

  • archivebox/themes
  • archivebox/legacy/templates
behavior medium idea phase

Most helpful comment

This is planned for v0.5. There is already an admin UI for editing and removing existing links in v0.4, so v0.5 will add the ability to submit new links via UI as well.

All 3 comments

CC: @mlazana

This is planned for v0.5. There is already an admin UI for editing and removing existing links in v0.4, so v0.5 will add the ability to submit new links via UI as well.

This is done and available on the latest django branch (soon to be master).

git checkout django
git pull
docker build . -t archivebox
docker run -v $PWD/output:/data archivebox init
docker run -v $PWD/output:/data -p 8000:8000 archivebox server
Was this page helpful?
0 / 5 - 0 ratings