Skip to main content

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 or href attributes
  • only considers URLs with http or https 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 those url(...) and those @import in your CSS)
  • does not throttle requests
  • does not respect robots.txt

Project details


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.5.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

geler_certic-0.1.5-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file geler_certic-0.1.5.tar.gz.

File metadata

  • Download URL: geler_certic-0.1.5.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.0 CPython/3.9.4 Darwin/24.1.0

File hashes

Hashes for geler_certic-0.1.5.tar.gz
Algorithm Hash digest
SHA256 d56cce6f8a46a619d0d1b4bead6ec536a70e615b9ba8e264b72e25a88d7dea81
MD5 eececbd41d86ca712cdd2dc851b6d7a8
BLAKE2b-256 888445a006986b58eccd136c11d6b1014dc963bb33baf24ff579f563d0add83b

See more details on using hashes here.

File details

Details for the file geler_certic-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: geler_certic-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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

Hashes for geler_certic-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7117cd2fe3965f99b1e91db7e02ccde8ef58ba98bee8308936c3b42a5c2ea57d
MD5 4169866efcff7844c3c96903403d92c5
BLAKE2b-256 5272c8e02e598f45bce9d20c635a7e0e3742804fb1478b1db7247fea9c57b4cf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page