Fuzzy Booster: Match Top Search Console Queries to Titles, Metas and H1s
A page’s title, meta description and H1 should reflect the query that actually brings it clicks. On a large site, checking that by hand doesn’t happen. The Fuzzy Booster method does it for you: this free Google Colab notebook pulls each page’s most-clicked query from Search Console, scrapes the page’s title, meta description and first H1, scores how well each one contains the query, and can ask an OpenAI model to draft a better title where the score is low.
Who it’s for
SEOs and content teams running metadata audits on sites with more pages than they can review one by one. You need access to the Search Console property and, for the optional title suggestions, an OpenAI API key.
How to use it
- Open the notebook in Colab. If you want title suggestions, add your OpenAI key as a Colab secret named
OPENAI_API_KEY. - Set your site and a regex of branded queries to exclude.
- Create a Google Cloud OAuth client for the Search Console API, or use a service account, and upload the credentials file when asked. No access yet? Run the sample data cell instead.
- The notebook pulls up to 25,000 page and query rows from the last 16 months and keeps the most-clicked query per page.
- It scrapes the metadata, cleans the text and scores each element with RapidFuzz
token_set_ratio. - For titles scoring 60 or below, it drafts a new title under 60 characters that includes the query, and saves everything to
fuzzy_booster.csv.
What you get
title_similarity,meta_similarityandh1_similarity(0 to 100) for every page- A shortlist of pages whose metadata doesn’t reflect their main query
- Optional AI-drafted titles for that shortlist
- A command-line version and offline tests if you prefer to run it locally
Limits and costs
Fuzzy matching compares wording, so a title that uses a close synonym can still score low. Treat the scores as a review queue. Every page under the threshold is one OpenAI call, so run a small sample first, and read every suggested title before it goes live.
The 2026 refresh replaced FuzzyWuzzy with RapidFuzz, swapped the retired Search Console sign-in flow for a localhost redirect, and moved to the current OpenAI SDK with the key read from a secret.
Read How to Automatically Optimize your SEO Metadata with FuzzyWuzzy and OpenAI in Google Colab for the walkthrough, and see Introduction to Machine Learning for SEO for the fuzzy matching module behind it.
What’s included
- Pulls each page's most-clicked query from Search Console (last 16 months, brand excluded)
- Scores title, meta description and H1 against it with RapidFuzz token_set_ratio
- Optional OpenAI-drafted titles under 60 characters for pages scoring 60 or below
- Sample data cell if you don't have Search Console access yet
- Command-line version and offline tests included
Where this resource is used on MLforSEO
Walkthroughs on the blog
Concepts behind it
More content audits resources
- Coding Script or NotebookScreaming Frog Custom Extraction Helper: Selector Tester and Dataset Cleaner
- Coding Script or NotebookFuzzy Matching for SEO in Python: Scorers, Redirects and Library Comparison
- Coding Script or NotebookFuzzy Matching for Content Gap Analysis & Competitive Opportunity Identification
- Coding Script or NotebookBacklink Quality Audit Notebook: DataForSEO, Embeddings and Claude
- WorkbookEntity Audit and Prioritisation Workbook: mlforseo.com Masterclass Example
- Coding Script or NotebookLink Blocks for WordPress: Related Posts, Topic Cards, Siblings and Mentions
See all 28 content audits resources →See all 32 keyword research resources →See all 73 coding script or notebook resources →
