Skip to main content

manually create sitemap config and generate sitemap using it

Project description

Introduction

Nowadays, SPA (Single Page Application) Websites using Vue, React and Angular are booming. But, for those SPA websites, creating sitemap is not easy task for considering all uri query string and uri parameters. This module helps create sitemap manually using python file where we define urls, and query strings.

Installation

pip install manual-sitemap

Example

Make config.py and set DOMAIN, ROUTES and QUERIES (optional).

# config.py

DOMAIN = 'https://example.com'

# (route, [querie string keys])
# queries must be emtpy list if it has no query strings.
ROUTES = [
    ('/exercise', ['page', 'date']),
    ('/homework', ['date']),
]

# { query string key: [query string values ]}
QUERIES = {
    'page': [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
    'date': ['2019-01-01', '2019-04-03', '2019-04-08', '2019-05-06']
}

Manual-sitemap can be easily run using manual-sitemap

$ manual-sitemap config

Project details


Download files

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

Source Distribution

manual-sitemap-19.6.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page