This chapter covers the core features and capabilities of Canonical URL Planner.
# Validate canonical URLs from CSV
python src/canonical_url_planner.py --input examples/pages.csv
# Validate from JSON
python src/canonical_url_planner.py --input examples/pages.json
# JSON output for CI/CD
python src/canonical_url_planner.py --input examples/pages.csv --format json
# Strict mode
python src/canonical_url_planner.py --input examples/pages.csv --strict
# Write report to file
python src/canonical_url_planner.py --input examples/pages.csv --output report.txtFollow this guide to get Canonical URL Planner up and running in your environment.
page_url,canonical_url
https://www.example.com/,https://www.example.com/
https://www.example.com/old-page,https://www.example.com/new-page
https://www.example.com/no-canonical,[
{"page_url": "https://www.example.com/", "canonical_url": "https://www.example.com/"},
{"page_url": "https://www.example.com/old-page", "canonical_url": "https://www.example.com/new-page"}
]| Flag | Description |
|---|---|
--input, -i | Path to pages file, CSV or JSON (required) |
--format, -f | Output format: text, csv, or json (default: text) |
--output, -o | Write output to file instead of stdout |
--strict | Exit 1 if any warnings found |
--quiet, -q | Only show errors |
--verbose, -v | Enable debug logging |
Get the full Canonical URL Planner and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.