See exactly which words competitors use in their product titles that you're missing.
- Matches your products to competitors by SKU/MPN/product ID
- Compares title content using NLP word extraction
- Identifies missing descriptive words
- Calculates title length gaps
- Finds the most verbose competitor title for reference
- Improve thin product descriptions
- Identify missing product attributes
- Find content opportunities vs competitors
- Prioritize title optimization efforts
pip install -r requirements.txtpython competitor_gap_finder.py --source my_products.csv --compare competitor_products.csvpython competitor_gap_finder.py --source my_crawl.csv --compare "competitors/*.csv" --output gaps.csvpython competitor_gap_finder.py \
--source my_crawl.csv \
--compare competitors/ \
--match-col sku \
--title-col product_name \
--output gaps.csv| Argument | Description | Default |
|---|---|---|
--source, -s |
Your product CSV file | Required |
--compare, -c |
Competitor CSV file(s) - supports wildcards | Required |
--output, -o |
Output CSV file | content_gaps.csv |
--match-col |
Column for matching key (mpn, sku, etc.) | mpn |
--title-col |
Column for product title | h1 |
--url-col |
Column for URL (optional) | url |
mpn,h1,url
ABC123,Widget Pro 500,https://mysite.com/widget-pro
DEF456,Gadget Basic,https://mysite.com/gadgetmpn,h1,url
ABC123,Widget Pro 500 Premium Edition with Extended Warranty,https://competitor.com/widget
DEF456,Gadget Basic Starter Kit Complete,https://competitor.com/gadgetThe tool outputs a CSV with:
match_key: The matching identifier (SKU/MPN)source_title: Your current titlemissing_words: Words competitors use that you don'tmissing_word_count: Number of unique missing wordscompetitor_matches: Number of competitors with this productmost_verbose_title: Longest competitor title (for reference)length_difference: Word count gap (positive = competitors are more detailed)
- Loads your product data and competitor data
- Matches products by the specified key (MPN, SKU, etc.)
- Processes titles to extract meaningful words (removes stopwords, punctuation)
- Compares word sets to find gaps
- Calculates statistics and outputs prioritized results
- Use Screaming Frog exports for both your site and competitors
- Include a custom extraction for MPN/SKU if not in standard fields
- Results are sorted by biggest gaps first for easy prioritization
Lee Foot - leefoot.com