Advanced Python SEO
Evaluate Subreddit Posts in Bulk Using GPT4 Prompting
/in API, Automation, Python/by Greg BernhardtReddit is a rich source of user-generated content — people share opinions, ask questions, and discuss a wide range of topics. Analyzing subreddit posts reveals what users care about, emerging trends, and common pain points. Combined with OpenAI’s language models, you can quickly generate summaries, topic ideas, or keyword suggestions tailored to your goals. In […]

Evaluate Subreddit Posts in Bulk Using GPT4 Prompting
Reddit is a rich source of user-generated content — people…

Calculate Similarity Between Article Elements Using spaCy
In this Python SEO tutorial, we’ll walk through a script that…

Audit URLs for SEO Using ahrefs Backlink API Data
This step-by-step SEO tutorial shows a Python script that retrieves…

Build a Custom Named Entity Visualizer with Google NLP
Entity SEO has been a hot topic since at least 2012–13,…

Storing CrUX CWV Data for URLs Using Python for SEOs
The CWV panic days appear to be over, but keeping tabs on the…

Scraping YouTube Video Page Metadata with Python for SEO
In this tutorial, we explore a Python script that scrapes and…

Calculate SERP Rank Readability Scores Using Python
Readability scores are not a verified SEO ranking factor.…

Find Interlinking Opps via Entity N-gram Matches Using Python
Any seasoned SEO knows that finding internal links at scale is…

Collect Domain Security Information with Python
In this tutorial, we will learn how to automate the collection…

Build and Run Python Scripts on the Fly With GPT-3
GPT-3 and its forms have taken the world by storm and for good…

Compare Keyword SERP Similarity in Bulk with Python
Studying search engine results pages (SERPs) is one of SEO's…

Analyze SERP Backlink Profiles in Bulk for SEO Using Python
The importance of backlinks as a quality signal has changed little…

Detect Generic Anchor Text in Links for SEO using Python
Optimizing anchor text for internal links has long been a core…

Detect Text in Images in Bulk With Tesseract Using Python for SEO
Imagery in articles can be a wonderful communication device when…

Extracting Data from PDFs Using PDFMiner
PDF files are ubiquitous in various industries, but programmatically…

Create a Topical Internal Link Graph for SEO with NetworkX and Python
Link graphs are visual representations of relationships between…

Evaluate Sentiment Analysis in Bulk with spaCy and Python
Sentiment analysis is about evaluating text for positive or negative…

Discover Interlinking Opportunities Using K-Means and Python
It's no mystery that interlinking is important for SEO. A big…

Classify Anchor Text N-Grams for Interlinking Insights with Python
In this Python SEO tutorial, I’ll show you a programmatic method…

Webpage Word Sense Disambiguation for SEO Using Python and NLTK
In semantics, ambiguity is partially defined as a word having…

Calculate GSC CTR Stats By Position Using Python for SEO
Last week SEO Clarity came out with a new SERP CTR study. The…

Use Python and Google Trends to Forecast Your Top GSC Keywords
Google Search Console already gives SEO's amazing historical…

Use Machine Learning and Python for Easy Text Classification
The topic of machine learning has never been so hot and for good…

Detect Google SERP Title and Snippet Rewrites with Python
Back in early August of 2021 word began to travel through the…

Use Python to Create a GSC to BigQuery Pipeline
Google Search Console is likely the most important source of…

Overlay GSC Data with Google Algo Updates Using Python
Most SEO's hearts skip a beat when they hear a Google algorithm…

Build an N-Gram Text Analyzer for SEO using Python
The days where content SEO was simply copywriting are over. Modern…

Bulk IP Filter for Google Analytics Using Python and RegEx
Not every Python script needs to be complex, long, and work of…

Compare Wikipedia Search Data with Google Trends with Python
There are countless ways to understand trends which are important…

Measure Causal Impact from GSC Data Using Python
Causal Impact is a Bayesian-like statistical algorithm pioneered…

Competitive SEO URL Analysis with Python
Match your URLs to your competitor's URLs, find title keyword…

Use Python to Label Query Intent, Entities and Keyword Count
Query analysis is a large topic, but I wanted to focus on intent…

Generate a 404 Redirect List for SEO with Polyfuzz Using Python
We've all had a client where we pop in their Google Search Console…

Greg Bernhardt Joins Webinar on How to Perform a Content Audit
I had a great time joining this webinar on content audits for…

Analyze Words Using WordsAPI App and Python for SEO
Ask any SEO writer, the words you choose for your copy matter.…

Scraping YouTube Video Pages for SEO with Python
I had a project this week that tasked my team with optimizing…

Create a Simple Sitemap Generator App for SEO Using Python and Streamlit
This past week I needed to create a few custom sitemaps for a…

Automatically Find SEO Interlinking Opportunities with Python
Interlinking has been a core SEO task since the very beginning.…

SEO Data Blending with Python for Beginners
Data is everything for an SEO and it's all too often scattered…

Is Python SEO Right For You? Practical Python Advice and FAQ
The Python SEO movement is not new, but in recent years has been…

Crawl and Optimize All Website Images With Python
Last month I released a tutorial for automating new image optimization…

Automate Image Compression with Python over FTP
Image compression isn't new to the tech SEO world, but with site…

Getting Started with Google Cloud Functions and Google Scheduler
If you're tired of running and scheduling all your scripts locally…

Update a Google Sheet with Semrush Position Tracking API Using Python
If you want to export your keyword position data from Semrush…

Create a Custom Twitter Tweet Alert System with Python
Do you follow hundreds or thousands of Twitter accounts and miss…

Find Search Volume Ceiling for Keyword Categories Using Python
In this tutorial I'll show how to use Python to generate broad…

Analyze Crawled PDF Text Using Python for SEO
Google has indexed PDFs for many years and treats them like web…

Hamlet Batista Ranksense Webinar: Data Blending with Python
https://www.youtube.com/watch?v=qB6-iWevbRg&feature=yout…

Use Python and Brightlocal API to Grab Your Keyword Rankings
BrightLocal is a common tool for local SEO, citations, and ranking…

Automate Google Lighthouse with Python for SEO Reports
Google's web page scanner Lighthouse has been a fixture among…

Google Mobile-Friendly Test API Tutorial for Python
This post explains how to use Google's Mobile-Friendly Test API…

Detect Website Technologies with Python & BuiltWith API
For SEO audits, one area you may want to detect and store is…

Compare Web Page Entities with Google NLP in Python
This is part 2 of a two-part series. Please see Getting Started…

Getting Started with Google NLP API Using Python
Natural Language Processing (NLP) has been a revolution for search…

Use Python to Scrape Technical Info for Domains
SEOs wear many hats. During a technical audit or troubleshooting,…

Website Uptime Monitor With LEDs and LCD Screen Using Python
Earlier in the tutorial, SEO Guide to Creating a Website Uptime…

SEO Guide to Creating a Website Uptime Monitor Using Python
It's Sunday night. You're lying in bed. Do you know if your website…

Monitor robots.txt Changes with Python and Difflib
Robots.txt is a useful tool for SEOs to control crawling by spiders.…

Retrieve the Google Cache Date for URLs Using Python
Viewing cached links in Google is a common troubleshooting and…

Extract Google Suggestions API Data for SEO Insights with Python
One of the main tenets of SEO is understanding the search climate…

Find Keyword Opportunities with Google Trends, Python and Ahrefs
Google Trends has long been a powerful tool for SEOs. Understanding…

Submit a WordPress Gravity Form via API with Python
Gravity Forms is a popular WordPress form plugin. If you run…

Use Python and Chrome to Take Webpage Screenshots
In 2017 Chrome, Google released a headless (no GUI) mode that…

How to Get Cached Pages From Wayback Machine API
Archive.org's Wayback Machine is a staple in the SEO industry…
