Sub topic 1
What a crawl export tells you
A crawl export is a table with one row per URL that the crawler requested. Every later chapter in this tutorial starts from that table. Duplicate detection, thin page triage and the choice of fix all read it. Before you hash any text, you need to know what each column records, what it leaves out, and where it can mislead you.
Prerequisites
This chapter assumes you already know the following:
- Basic HTML structure: the title, headings, body and link elements in the head.
- HTTP status codes and how redirects work, including the difference between 301 and 302.
- What a crawler such as Screaming Frog, Sitebulb or a custom script records for each URL.
- Basic spreadsheet or pandas skills for filtering and grouping rows.
What one row represents
A row describes one request, not one page. The crawler asked for a URL and recorded what came back. Two URLs that show the same page produce two rows. A URL that redirects produces a row for the redirect and another row for its destination. This is why a site with 2,000 real pages can export 9,000 rows, and the extra 7,000 rows are often the problem you are looking for.
Keep this in mind for the whole tutorial: the unit of analysis is the URL. Deciding which URLs are really the same page is your job, and the crawler does not do it for you.
The field groups
Exports differ by tool, but the columns fall into the same groups.
| Group | Typical columns | What it helps you decide |
|---|---|---|
| Identity | URL, address, content type | Which URLs exist and whether they are HTML |
| Response | Status code, redirect target, response time | Whether the URL serves a page, redirects or fails |
| Indexing directives | Meta robots, X-Robots-Tag, canonical link element, indexability | Whether the site asks for the URL to be indexed |
| Content | Title, H1, meta description, word count, extracted body text, content hash | Whether pages repeat or lack content |
| Structure | Template or page type, depth, inlinks, outlinks | Where a page sits and how much the site links to it |
| Crawl context | Crawl date, user agent, JavaScript rendering mode | Whether you can trust and repeat the result |
Some columns are measured, such as status code. Others are computed by the tool, such as word count, indexability and the tool's own duplicate flags. A computed column carries the tool's assumptions. A word count depends on which part of the page the tool counted, and the next chapters return to that point.
Template is often not exported at all. You usually add it yourself from the URL path (/product/, /blog/, /tag/) or from a custom extraction rule. It becomes one of your most useful columns for thin page work.
Reading a crawl in pandas
The script below builds a small export inline so you can run it as shown. In real work, replace the io.StringIO(raw) part with "crawl.csv".
import io
import pandas as pd
raw = """url,status,content_type,indexability,canonical,word_count,inlinks,template
https://example.com/,200,text/html,Indexable,https://example.com/,420,310,home
https://example.com/shoes/,200,text/html,Indexable,https://example.com/shoes/,380,95,category
https://example.com/shoes?color=red,200,text/html,Indexable,https://example.com/shoes/,380,12,category
http://example.com/shoes/,301,text/html,Non-Indexable,,0,4,
https://example.com/tag/boots/,200,text/html,Indexable,https://example.com/tag/boots/,40,2,tag
https://example.com/old-page,404,text/html,Non-Indexable,,0,7,
https://example.com/brochure.pdf,200,application/pdf,Indexable,,1800,3,document
"""
df = pd.read_csv(io.StringIO(raw))
df["template"] = df["template"].fillna("unknown")
# 1. What did the crawler get back?
print(df["status"].value_counts())
# 2. Keep only HTML pages that returned content.
pages = df[(df["status"] == 200) & df["content_type"].str.startswith("text/html")].copy()
# 3. How do these pages describe themselves for indexing?
pages["canonical_state"] = "missing"
pages.loc[pages["canonical"].notna(), "canonical_state"] = "other_url"
pages.loc[pages["canonical"] == pages["url"], "canonical_state"] = "self"
print(pages["canonical_state"].value_counts())
# 4. Which templates make up the crawl?
print(pages.groupby("template")["url"].count())The script answers four questions in order. The first asks whether the crawl hit errors or redirects, and the second narrows the table to rows that can hold duplicate or thin content. The third checks whether pages declare themselves canonical, point to another URL or declare nothing. The fourth shows which templates dominate the crawl.
In the sample, https://example.com/shoes?color=red has the same word count as /shoes/ and a canonical pointing to it. That is a first sign of a duplicate that the site already handles. You have not proven anything yet, but you know where to look.
Which rows to analyze
Do not run duplicate detection on the whole export. Filter first, and write down the filter so a colleague can reproduce it.
- Keep status 200 for content analysis. Redirects (3xx) and errors (4xx, 5xx) have no body worth comparing. Study them separately as signals.
- Keep HTML. PDFs and images appear in exports and distort word count statistics.
- Do not drop non-indexable pages too early. A page with
noindexis still part of the picture, because it may be the intended fix for a duplicate group. You need it to see how a group is handled. - Note blocked URLs. If robots.txt stops the crawler from fetching a URL, the row may show no status, title or content. A blocked URL can still be a duplicate. It is simply invisible to content analysis.
Limits of the data
Three limits matter for the rest of the tutorial.
First, the export is a snapshot. The crawl reflects the site on one date, with one user agent and one rendering mode. If the crawl did not execute JavaScript and the site builds its main content in the browser, word_count can be close to zero for pages that look full to a visitor. Check the rendering mode before you call any page thin.
Second, extracted text depends on the extraction rule. Many tools count every word inside the body element, including navigation, footer and cookie banners. Two product pages with 40 words of unique text can show 600 words each because the site chrome is counted. The chapter on boilerplate covers this in detail. For now, treat raw word count as an upper bound on the unique content.
Third, a tool's own flags are leads, not conclusions. A "duplicate" or "low content" flag uses a threshold the tool chose. You will rebuild these checks yourself so that you know what they test.
How the export feeds the analysis
The fields you just met connect to the later chapters. The diagram shows where each group is used.
Keep one rule in mind from the diagram: no single group is enough. A page with the same content as another is a problem only if the directive fields show nothing already handles it. A page with little content matters only if the structure fields show that the site links to it or that it serves a search need.
A first pass checklist
Before moving on, run this pass on any new crawl. It takes a few minutes and prevents most wrong conclusions later.
- Record the crawl date, user agent, rendering mode and whether sitemap URLs were included.
- Count rows by status code. A large share of redirects or errors points to link problems and URL variants.
- Filter to status 200 HTML rows and note how many remain.
- Add a template column from the URL path if the export has none.
- Count canonical states: self, other URL, missing. A high share of missing canonicals means the site gives search engines little guidance.
- Compare the row count with what you expect. If you expect 2,000 pages and see 9,000 HTML rows, the extra rows are your first lead.
Exercise
A crawl export has 5,000 rows. After filtering to status 200 and HTML content type, 3,200 rows remain. A colleague says the site therefore has 3,200 pages. Give two reasons the number may be wrong, and name one column you would check for each reason.
Show answer
First, several URLs can serve the same page, such as protocol, host, trailing slash or parameter variants, so the row count overstates the number of distinct pages. Check the canonical column and compare normalized URLs. Second, the crawler only finds URLs it can reach by following links, so pages without internal links may be missing, and the crawl may not have rendered JavaScript. Check whether sitemap URLs were included and which rendering mode was used. Any answer that names one over-counting reason, one under-counting reason and a suitable column is correct.
Exercise
In the sample script, why is the 301 row for http://example.com/shoes/ removed from the pages table, and where in the analysis would you still use it?
Show answer
It is removed because a redirect has no body content to hash or compare, and its word count is zero. You still use it when you read redirect signals, because it shows that the old HTTP URL is already handled by a redirect and does not need another fix.