Python tool to generate sitemap XML files
Project description
Python tool to generate sitemap XML files.
This tool relies mainly on the Python crawler sitecrawl.
Installation
Using pip:
pip3 install sitemap_maker
sitemap_maker --help
Or build from sources:
# Clone project
git clone https://github.com/gabfl/sitemap_maker && cd sitemap_maker
# Installation
pip3 install .
Usage
sitemap_maker --url https://www.weather.gov/ \
--sitemap output.xml \
--depth 1 \
--max 5 \
--no_pound \
--verbose
# For help:
# sitemap_maker --help
Will create a file sitemap.xml:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://www.weather.gov</loc>
</url>
<url>
<loc>https://www.weather.gov/wrh/climate</loc>
</url>
<url>
<loc>https://www.weather.gov/safety/flood</loc>
</url>
<url>
<loc>https://www.weather.gov/safety/tsunami</loc>
</url>
<url>
<loc>https://www.weather.gov/safety/beachhazards</loc>
</url>
</urlset>
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-maker-1.0.1.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for sitemap_maker-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85aedbf6d8e05f83795863836abef54e64850e40e2c801a5655886d80579f592 |
|
MD5 | 2312c7f1c09cfe0590ad070fa70fec70 |
|
BLAKE2b-256 | 616a5fb2bc4f8dc6dc89c16ffea1aa70d93b20cfe4a646602a86848d1091a289 |