A simple archiving server for the `Hoardy-Web` Web Extension browser add-on.
Project description
What is hoardy-web-sas?
hoardy-web-sas is a very simple archiving server for the Hoardy-Web Web Extension browser add-on (also on GitHub).
I.e. this is the thing you run and then paste the URL of into the Server URL setting of Hoardy-Web.
This is not the most feature-rich thing for doing that, hoardy-web serve (also on GitHub) is much more powerful.
But, hoardy-web serve is not at all simple and it depends on quite a lot of things.
Meanwhile, this hoardy-web-sas thing is less than 300 lines of pure Python that only uses the Python's standard library and nothing else.
You could be running it already.
Quickstart
Pre-installation
-
Install
Python 3:- On a Windows system: Download Python installer from the official website, run it, set
Add python.exe to PATHcheckbox, thenInstall(the default options are fine). - On a conventional POSIX system like most GNU/Linux distros and MacOS X: Install
python3via your package manager. Realistically, it probably is installed already.
- On a Windows system: Download Python installer from the official website, run it, set
Installation
-
On a Windows system:
Open
cmd.exe(pressWindows+R, entercmd.exe, pressEnter), install this tool withpython -m pip install hoardy-web-sas
and run as
python -m hoardy_web_sas --help
-
On a POSIX system or on a Windows system with Python's
/Scriptsadded toPATH:Open a terminal/
cmd.exe, install withpip install hoardy-web-sas
and run as
hoardy-web-sas --help -
Alternatively, run without installing:
python hoardy-web-sas.py --help # or, on POSIX ./hoardy-web-sas.py --help
-
Alternatively, on a system with Nix package manager
nix-env -i -f ./default.nix hoardy-web-sas --help
Though, in this case, you'll probably want to do the first command from the parent directory, to install everything all at once.
Start archiving
python -m hoardy_web_sas --archive-to C:\Users\Me\Documents\hoardy-web\raw
# or
hoardy-web-sas --archive-to ~/hoardy-web/raw
Capture and archive some websites
See Hoardy-Web's "Quickstart" (also on GitHub).
Usage
usage: hoardy-web-sas [-h] [--version] [--host HOST] [--port PORT] [-t ROOT] [--compress | --no-compress] [--default-bucket NAME] [--ignore-buckets] [--no-print]
A simple archiving server for the `Hoardy-Web` Web Extension browser add-on: listen on given `--host` and `--port` via `HTTP`, dump each `POST`ed `WRR` dump to `<--archive-to>/<bucket>/<year>/<month>/<day>/<epoch>_<number>.wrr`.
options:
-h, --help show this help message and exit
--version show program's version number and exit
--host HOST listen on what host/IP; default: `127.0.0.1`
--port PORT listen on what port; default: `3210`
-t ROOT, --to ROOT, --archive-to ROOT, --root ROOT
path to dump data into; default: `pwebarc-dump`
--compress compress new archivals before dumping them to disk; default
--no-compress, --uncompressed
dump new archivals to disk without compression
--default-bucket NAME, --default-profile NAME
default bucket to use when no `profile` query parameter is supplied by the extension; default: `default`
--ignore-buckets, --ignore-profiles
ignore `profile` query parameter supplied by the extension and use the value of `--default-bucket` instead
--no-print, --no-print-cbors
don't print parsed representations of newly archived CBORs to stdout even if `cbor2` module is available
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hoardy_web_sas-1.9.1.tar.gz.
File metadata
- Download URL: hoardy_web_sas-1.9.1.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c0a5806e1e836c6fc3c69fd5edbc1f6d58095a985a7baeba80a267510bafaa6
|
|
| MD5 |
667c6665e589024991b8ec11e489fb46
|
|
| BLAKE2b-256 |
618d33cce0ee77697eb64a42dcb0550b7d551eada28a4c5432ea32ba88ab290c
|
File details
Details for the file hoardy_web_sas-1.9.1-py3-none-any.whl.
File metadata
- Download URL: hoardy_web_sas-1.9.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3225f85576ca49737137ca8e7b1774adbfa039b1ded81cd2d3e06e62f8d2920
|
|
| MD5 |
2c2e2e315f7137c85447bd8710461060
|
|
| BLAKE2b-256 |
85e2562f6fb725e965d68c2a0a203b12f5b80284c454c77d6e537aa0aac6c618
|