Help convert dynamic webistes to static ones.
Project description
Geler
Help convert dynamic websites to static ones.
Install
pip install geler-CERTIC
Usage
As a library in your own program:
from geler import freeze
freeze("https://acme.tld/", "/path/to/local/dir/")
As a CLI tool:
$> geler --help
usage: geler [-h] start-url destination-path
Freeze given site at start_url to directory at destination_path
positional arguments:
start-url -
destination-path -
optional arguments:
-h, --help show this help message and exit
Why ?
For MaX and associated tools, we needed a lightweight, portable, pure Python solution to convert small dynamic websites to static ones.
Alternatives
This tool has a narrow scope, on purpose. Please turn to these solutions if you need more:
Limitations
- only works with HTTP GET
- does not submit forms (even with GET method)
- only considers URLs in
src
orhref
attributes - only considers URLs with
http
orhttps
schemes - only downloads what is in the same netloc (same domain, same port) as the start URL
- only patches URLs in
*.html
files, not in*.js
, not in*.css
(watch out for thoseurl(...)
in your CSS)
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
geler_certic-0.1.0.tar.gz
(4.3 kB
view details)
Built Distribution
File details
Details for the file geler_certic-0.1.0.tar.gz
.
File metadata
- Download URL: geler_certic-0.1.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.0 CPython/3.9.4 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb89cc25e3931001cff27d8220fc8f6056eaf78a28bfab21c0a593e64c07de89 |
|
MD5 | 38ba73de72024f869c466e359fc6074f |
|
BLAKE2b-256 | 72d9dcf713916defe644f0c96be2c4c126ffd35c7c609c66a68a02c365b1ea07 |
File details
Details for the file geler_certic-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: geler_certic-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.0 CPython/3.9.4 Darwin/24.0.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a10b6030b5713406544d01714b1e4f4ab24e16cf8509ddd26003673c8b5135a8 |
|
MD5 | 1752f8ac889d32c4d7e293013597929b |
|
BLAKE2b-256 | 75588b127ffbc8199ec6339877702dc28a8ed0fa7855f1e4cc72439ce98bedf5 |