A very simple archiving server for pWebArc extension of Private Web Archive (pwebarc) project
Project description
What?
pwebarc_dumb_dump_server.py
: a very dumb simple archiving server for Private Web Archive (pwebarc) pWebArc browser extension.
This thing is less than 200 lines of pure Python that only uses the Python's standard library and nothing else.
You could be running it already.
Why?
This was made for easy Quickstart. Ideally, you would use something smarter than this (when I publish it), but this will work fine as a starting point.
Quickstart
Installation
- You can run this without installing:
./pwebarc_dumb_dump_server.py --help
- Alternatively, install with:
pip install pwebarc-dumb-dump-server
and run aspwebarc-dumb-dump-server --help
- Alternatively, install it via Nix
nix-env -i -f ./default.nix
Usage
usage: pwebarc_dumb_dump_server.py [-h] [--version] [--host HOST]
[--port PORT] [--root ROOT]
[--default-profile NAME]
[--ignore-profiles] [--no-cbor]
Simple archiving server for pWebArc. Dumps each request to
`ROOT/<profile>/<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)
--root ROOT path to dump data into (default: pwebarc-dump)
--default-profile NAME
default profile to use when no `profile` query
parameter is supplied by the extension (default:
`default`)
--ignore-profiles ignore `profile` query parameter supplied by the
extension and use the value of `--default-profile`
instead
--no-cbor don't load `cbor2` module, disables parsing of input
data
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for pwebarc-dumb-dump-server-1.5.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 714844b87482e63a4e95efee89b5ca82ec6810848ab6f6e5cec5081beeb601ef |
|
MD5 | 830718284a3f562eea238611cc17f9dd |
|
BLAKE2b-256 | 08e48ab2bfe37f227e6ab2b8d71c40501aa4995e77850c98057a97e8512c45b4 |
Close
Hashes for pwebarc_dumb_dump_server-1.5.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4c03e52f0a7449ef0cdb957c9895852dbb31dbd2d575d9cf11b06d25fcfa7b0 |
|
MD5 | 6867bfc983bef5cd8e7cd3b336933f2b |
|
BLAKE2b-256 | 48c4f8673eca38696f47ee1e384d52ac257fa3fa2913a08e3a70d68ca7f08cc4 |