Skip to content
Coding Script or NotebookGoogle ColabFree

Boilerplate and Site Chrome Stripper for Entity and Content Corpora

ForEntity SEOContent analysis

By Lazarina Stoy· Updated 5 Dec 2026

Crawl five sites, extract their entities, and the top results will be things like “subscribe”, “view course” and the author’s name. That is site chrome: text repeated on every page that tells you nothing about the topic. This free Python script finds it and removes it, the same way for every site you compare.

Who it’s for

Anyone running an entity gap analysis, a topic comparison or similarity work on crawled content, where repeated template text would distort the result.

How it works

Chrome survives at two levels, so the script works at two levels:

  • Text: sentences and lines repeated across many pages of one site are removed before extraction, so they never become entities.
  • Entities: chrome entities are removed automatically when they are button text, numbers or sit inside boilerplate lines. Entities that are merely frequent are only flagged, because a focused site’s core topics are frequent too.

How to use it

  1. Open the course scripts notebook in Colab (or download the folder from GitHub to run it on your computer).
  2. Add the keys the script needs as Colab secrets, with notebook access switched on. They never go into the code.
  3. Run the Setup cell. It downloads the scripts and installs what they need.
  4. Put each site in its own folder: a Screaming Frog internal_all.csv with your custom extraction content column, and/or an Entity Extractor export.
  5. Run scan on all the folders. It writes review files.
  6. Read boilerplate_lines.csv and chrome_entities.csv and set each decision to keep or remove.
  7. Run apply. It writes cleaned copies for every site.

What you get

Clean corpora and entity files ready for the Entity Gap Matrix, and your decisions saved as the record, so the comparison can be repeated and explained.

Limits

  • Treat the thresholds as a starting point. On my own site the repeat threshold had to come down a long way before it caught the chrome.
  • Apply the same rules to every corpus, yours included, or the comparison is unfair.
  • It is free and makes no API calls.

Why it matters

Without it, an entity gap analysis rewards sites with busy templates and punishes focused ones. With it, the comparison counts what each site actually writes about, and you can show exactly what you removed and why.

The scripts are on GitHub, with a beginner’s run guide. The The AI-powered Entity Audit course uses this before the gap matrix, on real competitor data.

What’s included

  • Finds lines repeated across many pages of one site: cookie banners, newsletter boxes, bios, footers
  • Removes chrome entities from button text, numbers and boilerplate lines automatically
  • Flags merely frequent entities for review, because core topics are frequent too
  • Your keep or remove decisions are saved as the record
  • Free: no API calls