Generate sitemaps from programmatically collected URLs
Project description
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
- Import
from sitemap import Sitemap
- Initialize
sitemap = Sitemap()
- Add urls to process them later:
sitemap.add_url("dummy-page")
sitemap.add_url("another-page")
sitemap.add_url("category/foo-bar")
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sitemap-builder-0.0.1.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file sitemap-builder-0.0.1.tar.gz
.
File metadata
- Download URL: sitemap-builder-0.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 983ab43b0362eb29e318d4d9e7c6daf23484046c7904030bc7ef370b2d3ae5d1 |
|
MD5 | 8c3498cda384618aac6f7c2cdc942127 |
|
BLAKE2b-256 | a532fb5bcb9233def3bbabbbea3c78febf9f7036e9418d3e1998f75690bb0fa9 |
File details
Details for the file sitemap_builder-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: sitemap_builder-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f32ac326601c9f62fb0bb5eeebac8fb03d2a1d1c71728b3e59c80d7fefc838ac |
|
MD5 | f116b5611f61eb4ac0e0b6e4e8b3f21d |
|
BLAKE2b-256 | fd7399da1b4505d9063cf7e40678d9445691029de10f14e82ae9ad25a91852f1 |