A technical SEO crawler can identify thousands of issues across a large website. But an engineering team rarely has the capacity to fix everything immediately.
The more interesting technical problem is determining which issues deserve attention first.
While working on a comparison of BrightEdge alternatives, I started considering how SEO teams could build a transparent prioritisation layer on top of their existing audit data.
In this tutorial, we'll create a small Python system that combines technical findings with search performance, business importance and estimated implementation effort.
The objective isn't to replace an enterprise crawler. It's to turn its findings into a more useful engineering backlog.
The architecture
Our workflow looks like this:
Technical audit export
+
Search Console page data
+
Business importance
|
v
Data normalisation
|
v
Issue prioritisation
|
v
Engineering backlog
The scoring layer remains independent of the crawler, making it easier to change data providers without rebuilding the entire prioritisation system.
We'll use Python 3.10+ and pandas.
pip install pandas
1. Define the input datasets
Create an audit export named audit.csv:
url,issue,severity,effort
https://example.com/pricing,broken_internal_links,high,2
https://example.com/blog/guide,missing_meta_description,low,1
https://example.com/products,incorrect_canonical,critical,3
https://example.com/about,missing_alt_text,medium,1
Next, create performance.csv:
url,clicks,impressions,business_value
https://example.com/pricing,1200,18000,5
https://example.com/blog/guide,450,22000,2
https://example.com/products,900,14000,5
https://example.com/about,100,2000,2
The data is synthetic.
In a real implementation, clicks and impressions could come from the Search Console API. Business importance and estimated effort would typically require input from marketing and engineering teams.
2. Load and validate the data
import pandas as pd
audit = pd.read_csv("audit.csv")
performance = pd.read_csv("performance.csv")
required_audit = {
"url", "issue", "severity", "effort"
}
required_performance = {
"url", "clicks", "impressions",
"business_value"
}
if not required_audit.issubset(audit.columns):
raise ValueError("Invalid audit schema")
if not required_performance.issubset(
performance.columns
):
raise ValueError("Invalid performance schema")
if performance["url"].duplicated().any():
raise ValueError("Duplicate performance URLs")
Validating the input schema prevents predictable integration problems when a crawler changes its export format.
Production implementations should also validate data types, reporting periods and URL consistency.
3. Merge technical findings with performance data
issues = audit.merge(
performance,
on="url",
how="left",
validate="many_to_one"
)
issues["missing_performance"] = (
issues["impressions"].isna()
)
issues["impressions"] = (
issues["impressions"].fillna(0)
)
issues["clicks"] = (
issues["clicks"].fillna(0)
)
issues["business_value"] = (
issues["business_value"].fillna(1)
)
The missing-performance flag is important.
A URL without reported Search Console data isn't necessarily a URL without search activity. It might be newly published, incorrectly matched or affected by reporting limitations.
Google's documentation on Search Console performance data explains why exported information may not represent every underlying search event.
4. Define a transparent scoring model
We'll combine four factors:
- Technical severity.
- Search visibility.
- Business importance.
- Estimated implementation effort.
import math
SEVERITY = {
"low": 1,
"medium": 2,
"high": 4,
"critical": 5
}
def priority_score(row):
severity = SEVERITY[row["severity"]]
visibility = min(
math.log10(
max(row["impressions"], 0) + 1
),
5
)
business_value = min(
max(row["business_value"], 1),
5
)
effort = max(row["effort"], 1)
impact = (
severity * 0.5
+ visibility * 0.2
+ business_value * 0.3
)
return round(impact / math.sqrt(effort), 2)
The weights are configurable editorial and engineering assumptions. They aren't empirically validated predictors of ranking improvements.
Logarithmic scaling prevents extremely high impression counts from dominating every other factor.
Using the square root of effort reduces the penalty applied to more complicated fixes.
5. Handle critical issues separately
A purely mathematical score can produce misleading results.
For example, a critical indexing problem might receive a low visibility score precisely because the affected page is not indexed.
We therefore need a separate review mechanism.
CRITICAL_ISSUES = {
"incorrect_canonical",
"accidental_noindex",
"blocked_critical_resource"
}
issues["requires_review"] = (
issues["issue"].isin(CRITICAL_ISSUES)
| issues["missing_performance"]
| issues["severity"].eq("critical")
)
issues["priority"] = issues.apply(
priority_score,
axis=1
)
issues = issues.sort_values(
["requires_review", "priority"],
ascending=[False, False]
)
A review flag doesn't establish that the issue must be fixed immediately. It means a qualified person should investigate before relying on the automated score.
For example, a canonical pointing to another URL might be entirely intentional.
6. Export an engineering backlog
columns = [
"url",
"issue",
"severity",
"impressions",
"business_value",
"effort",
"requires_review",
"priority"
]
backlog = issues[columns]
backlog.to_csv(
"seo_engineering_backlog.csv",
index=False
)
print(backlog.to_string(index=False))
This produces a structured backlog that can be imported into an issue-tracking system or reviewed in a spreadsheet.
7. Avoid creating thousands of duplicate tickets
Large websites frequently contain template-level problems.
For example, missing metadata across 5,000 product pages might originate from a single template rather than 5,000 independent issues.
Where possible, enrich audit data with a template identifier and group related findings.
from urllib.parse import urlparse
def page_group(url):
path = urlparse(url).path
segments = [
part for part in path.split("/")
if part
]
return segments[0] if segments else "home"
issues["page_group"] = issues["url"].apply(
page_group
)
summary = issues.groupby(
["page_group", "issue"],
as_index=False
).agg(
affected_pages=("url", "nunique"),
max_priority=("priority", "max"),
requires_review=("requires_review", "max")
)
print(summary)
This path-based grouping is only a starting heuristic. Actual template identifiers from a CMS or application framework would be more reliable.
8. Test the scoring behaviour
At minimum, the scoring function should behave consistently when visibility, severity and effort change.
import unittest
class PriorityTests(unittest.TestCase):
def test_higher_severity(self):
row = {
"severity": "low",
"impressions": 1000,
"business_value": 3,
"effort": 2
}
low_score = priority_score(row)
row["severity"] = "critical"
self.assertGreater(
priority_score(row),
low_score
)
def test_zero_effort(self):
row = {
"severity": "high",
"impressions": 1000,
"business_value": 3,
"effort": 0
}
self.assertGreater(
priority_score(row),
0
)
if __name__ == "__main__":
unittest.main()
Additional tests should cover missing values, invalid severity labels, duplicate findings and template-level aggregation.
Production considerations
A production prioritisation system should also account for:
- Whether an issue is new or recurring.
- The number of affected pages.
- Conversion and revenue information.
- Engineering dependencies.
- Confidence in the crawler's findings.
- Changes introduced by recent deployments.
If Search Console data is retrieved programmatically, respect the API usage limits and cache historical responses where practical.
Most importantly, automated prioritisation should not automatically modify production websites.
It should create a reviewable backlog with clear reasoning.
Final thoughts
Technical SEO software is valuable for discovering problems. A transparent prioritisation layer can help engineering and marketing teams decide which problems deserve investigation first.
Keeping that layer independent of a particular vendor also makes the overall architecture easier to maintain and adapt.
The scoring model doesn't need to be perfect to be useful. It needs to be understandable, adjustable and subject to human review.
Top comments (0)