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
Metadata
Release files for hoardy-web-sas 1.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hoardy_web_sas-1.9.1.tar.gz | 7.0 kB | Without provenance | Details for hoardy_web_sas-1.9.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hoardy_web_sas-1.9.1-py3-none-any.whl | Python 3 | none | any | Details for hoardy_web_sas-1.9.1-py3-none-any.whl |
Total release size: 14.0 kB
Release files / hoardy_web_sas-1.9.1.tar.gz
| Download URL | hoardy_web_sas-1.9.1.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c0a5806e1e836c6fc3c69fd5edbc1f6d58095a985a7baeba80a267510bafaa6
|
|
BLAKE2b-256 checksum How to use checksums |
618d33cce0ee77697eb64a42dcb0550b7d551eada28a4c5432ea32ba88ab290c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.9
|
Release files / hoardy_web_sas-1.9.1-py3-none-any.whl
| Download URL | hoardy_web_sas-1.9.1-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e3225f85576ca49737137ca8e7b1774adbfa039b1ded81cd2d3e06e62f8d2920
|
|
BLAKE2b-256 checksum How to use checksums |
85e2562f6fb725e965d68c2a0a203b12f5b80284c454c77d6e537aa0aac6c618
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.9
|
Security for hoardy-web-sas 1.9.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.