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:
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.6+
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.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
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
Built Distribution
Hashes for sitemap_preloader-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 877fe00b60db62e45750ea05f46f492c23c450c293f311745902999774892d61 |
|
MD5 | 2e2af6b5489bc1a96cd8335f5269b77a |
|
BLAKE2b-256 | 92142b79f0febc42dfc4d8d21a868f726b19b69fe8f3c5fac0fc44c52499118f |