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/")

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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for geler_certic-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3934f6b3dbbb9567400a2987baf7c8a811b0589afd7dd7013e1ec95647db5fc6
MD5 4c44c285d570bb990d0ab2b197121897
BLAKE2b-256 11300e982cb505060dc8825dd16196afa15c3a96b0598b7c35e31d49bac8538e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: geler_certic-0.1.1-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.0.0

File hashes

Hashes for geler_certic-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 56b74b28b5a1bd2efeffbe132f14232d10a1ab005728497bd9c99bed29d8f22e
MD5 a07e506d59fad26f2f9f0464c4688489
BLAKE2b-256 9c0b998bcf7ee9d7d1ec2799d1910b819d8a7bcdf4ee0dd30714fe169a234c55

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