Heading Structure Analyzer
Analyzes H1-H6 heading hierarchy for SEO best practices. Checks for missing levels, keyword usage, hierarchy violations, and heading depth.
Install
pip install -r requirements.txtRun
python heading_analyzer.py --url https://example.com/page --target-keyword "cloud hosting"python heading_analyzer.py --files page1.html page2.html --output headings.xlsxExport
Add --output report.xlsx to save results as a spreadsheet.
| Flag | Description |
|---|---|
--url | URL to analyze |
--file | Local HTML file |
--files | Multiple HTML files. Multiple values allowed |
--urls | Multiple URLs. Multiple values allowed |
--target-keyword | Check keyword in headings |
--output | Save as XLSX |
python heading_analyzer.py --helpRun as part of a full site audit. Export issues to XLSX, prioritize by severity, and create a fix roadmap for the dev team.
Run before launching a new site or after a migration. Catch technical issues before Google crawls the new version.
Schedule regular checks and compare outputs over time. Catch regressions early.
Combine with other tools for a complete workflow:
Requires: beautifulsoup4, pandas, requests. All included in requirements.txt.
Get all 154 Python SEO tools — $49
One-time payment. Lifetime access. No monthly fees.
Learn 25 tools and get 25% back. Earn from client work and get 50% back.
AAIO Inc — aaioinc.com/tools/heading_analyzer/