Skip to main content

A simple Python preloader package

Project description

Website SiteMap Preloader :rocket:

py.test codecov

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 It has more than one level.

Requirements :clipboard:

  • Python 3.6+

Installation :wrench:

Use the package manager pip to install preloader.

    pip install .

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

preloader-0.3.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

preloader-0.3.0-py3-none-any.whl (1.8 kB view details)

Uploaded Python 3

File details

Details for the file preloader-0.3.0.tar.gz.

File metadata

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

File hashes

Hashes for preloader-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b46675f3b3b122eacb5f2d45b9ef5d715f2defd34358de44df9efbaed6937808
MD5 5d5c4714c8efbc4f8ae3bdcf7a0f4ac6
BLAKE2b-256 77e97d139dc06ae65ea6b092697b568482532029ef7d64c69ed208eb95f59952

See more details on using hashes here.

File details

Details for the file preloader-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: preloader-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 1.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for preloader-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b60ba0799abc5b9548dc249540cecd10409993acf9e340a9754c035cfae24817
MD5 8bceb3d4349861a3e85594ece8f42f05
BLAKE2b-256 eda85560214691be6bf2b0a5a0e378c0b2ec0b5088078cf4182f385409fa0df6

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