Expand description
Utility functions and helper methods for sitemap operations.
Constants§
- DEFAULT_
CHANGE_ FREQ - Default change frequency for URLs.
- MAX_
URLS - Maximum number of URLs allowed in a single sitemap.
Functions§
- create_
cli - Creates the command-line interface for the application.
- format_
date - Formats a DateTime object into a string suitable for sitemap use.
- generate_
sitemap - Generates a sitemap based on the provided command-line arguments.
- is_
valid_ url - Checks if a URL is valid for inclusion in the sitemap.
- normalize_
urls - Normalizes a list of URLs to avoid duplicates.
- read_
urls_ from_ file - Reads URLs from a file, one URL per line.
- write_
output - Writes the sitemap XML to an output file.