Skip to content

andresgz/sitemap-preloader

Repository files navigation

Website SiteMap Preloader 🚀

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 📋

  • Python 3.8+

Installation 🔧

Use the package manager pip to install preloader.

    pip install sitemap-preloader

How to use ❓

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 ✅

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

    pytest -s
    

Contributing 🤝

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published