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/", thread_pool_size=1, http_get_timeout=30)
As a CLI tool:
$> geler --help
usage: geler [-h] [-t THREAD_POOL_SIZE] [--http-get-timeout HTTP_GET_TIMEOUT] start-from-url save-to-path
positional arguments:
start-from-url -
save-to-path -
optional arguments:
-h, --help show this help message and exit
-t THREAD_POOL_SIZE, --thread-pool-size THREAD_POOL_SIZE
1
--http-get-timeout HTTP_GET_TIMEOUT
30
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 and*.css
files, not*.js
files. - does not throttle requests
- does not respect
robots.txt
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.2.0.tar.gz
(4.8 kB
view details)
Built Distribution
File details
Details for the file geler_certic-0.2.0.tar.gz
.
File metadata
- Download URL: geler_certic-0.2.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.0 CPython/3.9.4 Darwin/24.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29dfdea652dac39f51a436cbcc093badd0cb3b1d0f9c1f524f63416e13608147 |
|
MD5 | d921cedce3760e9bd7b637bb8c18ba6e |
|
BLAKE2b-256 | 3c9dfc743bb4f5c62f1da4559a3221b207ba0da20baf372c2e246c1d21323f5f |
File details
Details for the file geler_certic-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: geler_certic-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.0 CPython/3.9.4 Darwin/24.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fe82781d21876a119356e021dffb0d5e8f4769bb747b4d0ae591b0fd15af6b1 |
|
MD5 | 8f6f0c014389a52f83a1991648961dd6 |
|
BLAKE2b-256 | 75bf2c6fddb8ea54f60a9ced0d30b04c60124d0209550f4224b7c5f8b7ad8de3 |