Socket
Socket
Sign inDemoInstall

sitemap-preloader

Package Overview
Dependencies
4
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sitemap-preloader

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


Maintainers
1

Readme

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.

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc