Sitemap library


Keywords
sitemap
License
MIT
Install
pip install sitemap==0.11

Documentation

sitemap

Sitemap library for dynamically generating sitemap.xml

Installation

pip install sitemap

Usage

from sitemap import Url, UrlSet

urlset = UrlSet()
url = Url('https://www.example.com/', changefreq='weekly')

urlset.add_url(url)

urlset.write_xml('sitemap.xml')