Skip to main content

Sitemap Builder

Generate sitemaps from programmatically collected URLs.

Features

  • 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

Install

pip install sitemap-builder

Usage

  1. Import
from sitemap import Sitemap
  1. Initialize
sitemap = Sitemap()
  1. Add urls to process them later:
sitemap.add_url("dummy-page")
sitemap.add_url("another-page")
sitemap.add_url("category/foo-bar")
  1. Generate sitemap index and files
sitemap.generate()

Example:

Generated files:

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

Metadata

Release files for sitemap-builder 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sitemap-builder 0.0.1
File Size Uploaded Provenance Actions
sitemap-builder-0.0.1.tar.gz 2.9 kB Without provenance Details for sitemap-builder-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sitemap-builder 0.0.1
File Interpreter ABI Platform Actions
sitemap_builder-0.0.1-py3-none-any.whl Python 3 none any Details for sitemap_builder-0.0.1-py3-none-any.whl

Total release size: 6.7 kB

Release files / sitemap-builder-0.0.1.tar.gz

Download URL sitemap-builder-0.0.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
983ab43b0362eb29e318d4d9e7c6daf23484046c7904030bc7ef370b2d3ae5d1
BLAKE2b-256 checksum
How to use checksums
a532fb5bcb9233def3bbabbbea3c78febf9f7036e9418d3e1998f75690bb0fa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5

Release files / sitemap_builder-0.0.1-py3-none-any.whl

Download URL sitemap_builder-0.0.1-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f32ac326601c9f62fb0bb5eeebac8fb03d2a1d1c71728b3e59c80d7fefc838ac
BLAKE2b-256 checksum
How to use checksums
fd7399da1b4505d9063cf7e40678d9445691029de10f14e82ae9ad25a91852f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.5

Security for sitemap-builder 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page