Skip to main content

This package is used to read a sitemap and fetch all the urls in order to warm the cache of a website

Project description

Website SiteMap Preloader :rocket:

py.test codecov PyPI version PyPI - Python Version PyPI - License

Package for preloading website URLS from a provided SITEMAP URL. You can use this package to preload your website URLS in the background, so that your website will be faster for your users. You can set the depth in case the sitemap has more than one level.

Requirements :clipboard:

  • Python 3.8+

Installation :wrench:

Use the package manager pip to install preloader.

    pip install sitemap-preloader

How to use :question:

Follow the steps below to use the package on a python project.

    from preloader import Preloader
    sitemap_url = 'https://www.example.com/sitemap.xml'
    preloader = Preloader(sitemap_url, depth=2)

    preloader.fetch_pages()

Testing :white_check_mark:

We use pytest for testing. To run the tests, run the following command in the root directory of the project.

    pytest -s
    

Contributing :handshake:

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

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

sitemap-preloader-0.1.4.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

sitemap_preloader-0.1.4-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file sitemap-preloader-0.1.4.tar.gz.

File metadata

  • Download URL: sitemap-preloader-0.1.4.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for sitemap-preloader-0.1.4.tar.gz
Algorithm Hash digest
SHA256 712d946cf7c9f95d2ab85ebafd9ff6cf64b237546f7da53d185242779f25877f
MD5 177a83403d76a222e5c69c1047380767
BLAKE2b-256 8bc4eb7f0aa83bbda40a751136ead28ea24f088bc6ac47f77deffb05d2f89723

See more details on using hashes here.

File details

Details for the file sitemap_preloader-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for sitemap_preloader-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 82df2e39c8b94e1b8f8955850c2477d0abb57a1801822c40bb8b5d6b1624ca95
MD5 bfac4608a7d79ffe3a9aad5ab93b8bd9
BLAKE2b-256 599312cddf0f00ead5035b6c63caa7ea9e5d1e6f66791e89ff23d2e9953f1c92

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