Topic Authority Scorer
Home/Tools/Content Optimization/Topic Authority Scorer
✎ Content Optimization

Topic Authority Scorer

v1.0 documentation

Scores a site's topical authority by analyzing content coverage depth, entity diversity, internal linking, and semantic coherence across pages.

URL inputFile inputXLSX export
topic_authority_scorer.py136 lines4 paramsPython 3.8+
Quick start
1

Install

terminal
pip install -r requirements.txt
2

Run

terminal
python topic_authority_scorer.py --urls https://site.com/p1 https://site.com/p2 https://site.com/p3 --topic "machine learning"
terminal
python topic_authority_scorer.py --files page1.html page2.html --topic "cloud computing" --output authority.xlsx
3

Export

Add --output report.xlsx to save results as a spreadsheet.

Parameters
FlagDescription
--urlsSite page URLs. Multiple values allowed
--filesHTML files. Multiple values allowed
--topic requiredTopic to score authority for
--outputSave as XLSX
help
python topic_authority_scorer.py --help
How it works

This tool analyzes the following signals:

1. Coverage breadth (TF-IDF unique terms)
2. Topic relevance
3. Entity diversity
4. Semantic coherence
Use cases
Content audit
Pre-publish check
Competitive analysis

Analyze existing content to find what needs updating, merging, or removing. Export results and create a content maintenance plan.

Run before publishing new content to ensure it meets quality thresholds. Fix issues before they go live.

Compare your content against top-ranking competitors. Identify gaps and opportunities to improve.

Dependencies

Requires: beautifulsoup4, numpy, pandas, requests, scikit-learn, sentence-transformers, spacy. 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.

Get the full toolkit

AAIO Inc — aaioinc.com/tools/topic_authority_scorer/