Metadata-Version: 2.1
Name: sitemap-maker
Version: 1.0
Summary: Python tool to generate sitemap XML files
Home-page: https://github.com/gabfl/sitemap_maker
Author: Gabriel Bordeaux
Author-email: pypi@gab.lc
License: MIT
Platform: UNKNOWN
Classifier: Topic :: Internet
Classifier: Topic :: Internet :: WWW/HTTP :: Site Management
Classifier: Topic :: Internet :: WWW/HTTP :: Site Management :: Link Checking
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Text Processing :: Markup :: XML
Classifier: Topic :: Software Development
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python
Classifier: Development Status :: 4 - Beta
Requires-Dist: sitecrawl
Requires-Dist: requests
Requires-Dist: dateparser (==1.1.*)

sitemap_maker
=============

|Pypi| |Build Status| |codecov| |MIT licensed|

Python tool to generate sitemap XML files.

This tool relies mainly on the Python crawler
`sitecrawl <https://github.com/gabfl/sitecrawl>`__.

Installation
------------

Using pip:

.. code:: bash

   pip3 install sitemap_maker

   sitemap_maker --help

Or build from sources:

.. code:: bash

   # Clone project
   git clone https://github.com/gabfl/sitemap_maker && cd sitemap_maker

   # Installation
   pip3 install .

Usage
~~~~~

.. code:: bash

   sitemap_maker --url https://www.weather.gov/ \
       --sitemap output.xml \
       --depth 1 \
       --verbose \
       --max 5 \
       --no_pound

   # For help:
   # sitemap_maker --help

Will create a file ``sitemap.xml``:

.. code:: 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>

.. |Pypi| image:: https://img.shields.io/pypi/v/sitemap_maker.svg
   :target: https://pypi.org/project/sitemap_maker
.. |Build Status| image:: https://github.com/gabfl/sitemap_maker/actions/workflows/ci.yml/badge.svg?branch=main
   :target: https://github.com/gabfl/sitemap_maker/actions
.. |codecov| image:: https://codecov.io/gh/gabfl/sitemap_maker/branch/main/graph/badge.svg
   :target: https://codecov.io/gh/gabfl/sitemap_maker
.. |MIT licensed| image:: https://img.shields.io/badge/license-MIT-green.svg
   :target: https://raw.githubusercontent.com/gabfl/sitemap_maker/main/LICENSE


