Fetch website dependencies locally for offline HTTP serving
Project description
offliner
Fetch a page’s assets into a folder so you can serve it offline with any static HTTP server.
Install
pip install offliner
python -m playwright install chromium
Usage
offliner --verbose https://example.com/
offliner -d ./my-offline https://example.com/
python -m offliner -h
Publish to PyPI (maintainers)
From this directory (python/):
-
Account & token — Create an account on PyPI and an API token (scope: whole account or project
offliner). -
Build (use a clean env or
pip install --upgrade build twine):cd python python -m build
This produces
dist/offliner-<version>-py3-none-any.whlanddist/offliner-<version>.tar.gz. -
Upload (TestPyPI first is optional but recommended):
# TestPyPI twine upload --repository testpypi dist/* # Production PyPI twine upload dist/*
When prompted, username is
__token__and password is your API token (pypi-...). -
Bump version in
pyproject.tomlbefore each new release; PyPI rejects re-uploading the same version.
Optional: configure ~/.pypirc with [pypi] and username = __token__ / password = pypi-... to skip typing the token each time.
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
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 offliner-0.0.1.tar.gz.
File metadata
- Download URL: offliner-0.0.1.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
880cf5a1043c8b2921326226dbc405f3b07b80a8a9460775fea7fff9c298233b
|
|
| MD5 |
14164cb77877d62b6e2bbc307bd595db
|
|
| BLAKE2b-256 |
3ee3995925874fc3bce967d6d8f35a0ca623d65a5a56f053c37fed507bbbf9f3
|
File details
Details for the file offliner-0.0.1-py3-none-any.whl.
File metadata
- Download URL: offliner-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b95e3eae1e7e2c65197a3a82cab69547dd60c9eba08e6fa62ba032c2688db7c
|
|
| MD5 |
24aa7b59785fc8ed2d596e722043445b
|
|
| BLAKE2b-256 |
f76f1dada9e42a4ad9938ac52e34b37d21dd35c2973ca6ac221b9d72a426da03
|