(root_path, base_url, output_file="sitemap.xml", excluded_paths=None): Automatically generate a sitemap based on the given root directory.
Generate Sitemap
Automatically generate a sitemap based on the given root directory.
Parameters:
root_path: The root directory of your website.
base_url: The base URL of your website (e.g., "https://example.com").
output_file: The name of the output XML file (default: "sitemap.xml").
excluded_paths: A list of file paths or directories to exclude from the sitemap.