Skip to main content

Generate sitemaps from programmatically collected URLs

Project description

Sitemap Builder

Generate sitemaps from programmatically collected URLs.


  • Generates an index that points to compressed sitemaps files
  • each generated sitemap won't have more than the allowed amount of 50.000 URLs
  • jinja2 templates


pip install sitemap-builder


  1. Import
from sitemap import Sitemap
  1. Initialize
sitemap = Sitemap()
  1. Add urls to process them later:
  1. Generate sitemap index and files


Generated files:

├── sitemap.xml
└── sitemaps
    ├── sitemap-0.xml.gz
    ├── sitemap-1.xml.gz
    ├── sitemap-2.xml.gz
	└── sitemap-3.xml.gz

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sitemap-builder, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size sitemap_builder-0.0.1-py3-none-any.whl (3.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size sitemap-builder-0.0.1.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page