SlideShare a Scribd company logo
1 of 39
SLIDESHARE.NET/BGOERLER
BRINGING THE FUN BACK TO SEO
WITH PYTHON
BENJAMIN GÖRLER // AYIMA //
@ayima
BRACE YOURSELVES
INFORMATION OVERLOAD
IS COMING!
48000
50000
52000
54000
56000
58000
60000
62000
2000 2002 2004 2006 2008 2010 2012 2014 2016
Total number of pubs in the UK
Source: BBC (2018)
48000
50000
52000
54000
56000
58000
60000
62000
2000 2002 2004 2006 2008 2010 2012 2014 2016
Total number of pubs in the UK
v9.0
v10.0
v11.0
v12.0
v14.0
v15.0
v16.0
Source: BBC (2018)
YOU SPEND 4 HOURS PER WEEK USING EXCEL
16 HOURS PER MONTH
~ 100 HOURS PER YEAR
WHAT IF I TOLD YOU
YOU’RE WASTING YOUR TIME
Python To The Rescue
What is Python?
● Easy to learn programming language
● Runs on any device
Why Python?
● Steep, but quick learning curve
● Almost unlimited use cases
● Tons of resources provided by a massive online community
● You can use it without actually ‘speaking’ any Python
● It’s scalable!
● Cause it’s fun!
WHY SHOULD I BOTHER TO LEARN IT?
You already possess an essential skill!
1 x 8 + 1 = 9
12 x 8 + 2 = 98
123 x 8 + 3 = 987
1234 x 8 + 4 = 9876
12345 x 8 + 5 = 98765
123456 x 8 + 6 = 987654
1234567 x 8 + 7 = ??????? Spot the pattern
Problem Pattern Python
Solving Problems with Python
Scenario #1
Site crawl of
5 Million
URLS
https://www.screwfix.com/c/decorating/paint/c
at850142#category=cat850142&brand=dulux
Analysing URL parameters
& {word} =
Pattern
The Excel Way #1
• Opening the crawl 10 mins
• Filtering and cleaning the data 15 mins
• Performing VLOOKUPs 10 mins
• Analysing the data 30 mins
= 1 hour in total
The Python Way
python paramsfinder.py -i crawl.csv -o output.csv
The Python Way
Evoke python Script name
input argument output argument
input file output file
python paramsfinder.py -i crawl.csv -o output.csv
The Python Way
Parameter Occurrences Example
&brand= 11,655
https://www.screwfix.com/c/decorating/paint/cat8501
42#category=cat850142&brand=dulux_trade
&colour= 24,182
https://www.screwfix.com/c/decorating/paint/cat8501
42#category=cat850142&colour=white
&price= 144,693
https://www.screwfix.com/c/decorating/paint/cat8501
42#category=cat850142&colour=white&price=5.0&pric
e_to=25.0
Digestible Data
0
20,000
40,000
60,000
80,000
100,000
120,000
140,000
160,000
Paint
Parameters By Category
brand colour price
Time Spent Using Python
1
2
3
4
Developing the script 20 mins
Entering the command 10 secs
Opening the crawl 5 secs
Running the script 15 secs
~ 20 mins in total
HOW MANY FRIDAY PINTS COULD I HAVE HAD?
Let’s ask Google
Success Metric
10 Minutes =
Success
Scenario #2: Keyword Reporting
Raw Data Export From Third Party Tool
Keyword Monthly Traffic Rank Ranking URL
bags 9,500 1 https://www.asos.com/women/bags-purses/cat/?cid=8730
hoodies 3,100 1 https://www.asos.com/men/hoodies-sweatshirts/cat/?cid=5668
jumpsuit 13,500 5 https://www.asos.com/women/jumpsuits-playsuits/cat/?cid=7618
Categorise keywords automagically
Dresses Jeans Jumper Shoes Accessories
wedding guest dresses boyfriend jeans mens turtleneck loafers for men wallet
maternity dress black skinny jeans half zip jumper flip flops belt
party dress mom jeans jumper dress espadrille wedges hat
burgundy grey ripped jeans cropped jumper sandals mens scarf
Pattern #1
https://www.asos.com
/women -> Women
/dresses -> Dresses
The Excel Way #2
• Filtering and cleaning the data 20 mins
• Developing formulas 120 mins
• Categorising the data 90 mins
4 hours in total
python analyse-kw.py -i keywords.csv -o analysis.csv
The Python Way #2
1
2
3
4
Developing the script 60 mins
Entering the command 10 secs
Opening the keyword export 5 secs
Running the script 5 secs
72%
28%
Monthly Traffic
Women Men
Reporting Made Simple
4.3
2.5 3.5 4.55.4
3.9
7.5
2.8
8.2
2.0
18.0
5.0
This Month Last Month Last Year
Avg. Rank Department
Shoes Dresses Jeans Accessories
Page 1
Page 2
Success
You Can Potentially
Automate Everything
With Python
Facet
Optimisation
Reporting
Keyword
Research
Internal Linking
Analysis
Redirect
Hops
Ad
Campaigns
Today
● Set up the
Python
environment
● Learn about
Command Line
Interface (CLI)
● Run your first
script!
In a Week
● Support some
workflows with
existing scripts
● Tweak scripts for
own scenarios
In a Month
● Write custom
scripts
● Query data from
various sources
● Automate
reporting
Start Saving Time Today
Useful resources
Prerequisites
• Command Line
(Windows)
• Terminal (Mac)
• Python
Environment
Using Python
• Python tutorial
• Online
community
• Ayima’s blog
Contact
Benjamin Görler
benjamin@ayima.com

More Related Content

Similar to Bringing the fun back to SEO with Python

Lentin joseph learning robotics using python design, simulate, program, an...
Lentin joseph   learning robotics using python  design, simulate, program, an...Lentin joseph   learning robotics using python  design, simulate, program, an...
Lentin joseph learning robotics using python design, simulate, program, an...
Rajmeet Singh
 

Similar to Bringing the fun back to SEO with Python (20)

WebRTC: The Big Debate, Shut Up and Build Something
WebRTC: The Big Debate, Shut Up and Build SomethingWebRTC: The Big Debate, Shut Up and Build Something
WebRTC: The Big Debate, Shut Up and Build Something
 
Tackling Python: What is it and How Can it Help with Technical SEO? | TechSEO...
Tackling Python: What is it and How Can it Help with Technical SEO? | TechSEO...Tackling Python: What is it and How Can it Help with Technical SEO? | TechSEO...
Tackling Python: What is it and How Can it Help with Technical SEO? | TechSEO...
 
the grinder testing certification
the grinder testing certificationthe grinder testing certification
the grinder testing certification
 
What is WebRTC? What can I do with it?
What is WebRTC? What can I do with it?What is WebRTC? What can I do with it?
What is WebRTC? What can I do with it?
 
Leveraging Search to Build an Engaging User Experience (CodeMentor - OfficeHo...
Leveraging Search to Build an Engaging User Experience (CodeMentor - OfficeHo...Leveraging Search to Build an Engaging User Experience (CodeMentor - OfficeHo...
Leveraging Search to Build an Engaging User Experience (CodeMentor - OfficeHo...
 
Cisco Paris DevNet Hackathon slideshow - Intro
Cisco Paris DevNet Hackathon slideshow - IntroCisco Paris DevNet Hackathon slideshow - Intro
Cisco Paris DevNet Hackathon slideshow - Intro
 
Lessons From Spider Support
Lessons From Spider SupportLessons From Spider Support
Lessons From Spider Support
 
Lentin joseph learning robotics using python design, simulate, program, an...
Lentin joseph   learning robotics using python  design, simulate, program, an...Lentin joseph   learning robotics using python  design, simulate, program, an...
Lentin joseph learning robotics using python design, simulate, program, an...
 
Skyquestcom by Kolirana
Skyquestcom by KoliranaSkyquestcom by Kolirana
Skyquestcom by Kolirana
 
Javascript State of the Union 2015 - English
Javascript State of the Union 2015 - EnglishJavascript State of the Union 2015 - English
Javascript State of the Union 2015 - English
 
Applied Data Science: Building a Beer Recommender | Data Science MD - Oct 2014
Applied Data Science: Building a Beer Recommender | Data Science MD - Oct 2014Applied Data Science: Building a Beer Recommender | Data Science MD - Oct 2014
Applied Data Science: Building a Beer Recommender | Data Science MD - Oct 2014
 
Building a Beer Recommender with Yhat (PAPIs.io - November 2014)
Building a Beer Recommender with Yhat (PAPIs.io - November 2014)Building a Beer Recommender with Yhat (PAPIs.io - November 2014)
Building a Beer Recommender with Yhat (PAPIs.io - November 2014)
 
Bringing Partners, Teams & Systems Together through APIs
Bringing Partners, Teams & Systems Together through APIsBringing Partners, Teams & Systems Together through APIs
Bringing Partners, Teams & Systems Together through APIs
 
Introduction to DevOps with Visual Studio Team Services -.Net Conf Mx 2018
Introduction to DevOps with Visual Studio Team Services -.Net Conf Mx 2018Introduction to DevOps with Visual Studio Team Services -.Net Conf Mx 2018
Introduction to DevOps with Visual Studio Team Services -.Net Conf Mx 2018
 
Telephony Through Ruby Colored Lenses
Telephony Through Ruby Colored LensesTelephony Through Ruby Colored Lenses
Telephony Through Ruby Colored Lenses
 
Permanent IT and Tech Salaries 2019
Permanent IT and Tech Salaries 2019Permanent IT and Tech Salaries 2019
Permanent IT and Tech Salaries 2019
 
Search London - The technical factors that every small or local business shou...
Search London - The technical factors that every small or local business shou...Search London - The technical factors that every small or local business shou...
Search London - The technical factors that every small or local business shou...
 
Ultimate Guide to Live Streaming
Ultimate Guide to Live StreamingUltimate Guide to Live Streaming
Ultimate Guide to Live Streaming
 
ITCamp 2019 - Andrea Saltarello - Implementing bots and Alexa skills using Az...
ITCamp 2019 - Andrea Saltarello - Implementing bots and Alexa skills using Az...ITCamp 2019 - Andrea Saltarello - Implementing bots and Alexa skills using Az...
ITCamp 2019 - Andrea Saltarello - Implementing bots and Alexa skills using Az...
 
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Recently uploaded (20)

Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 

Bringing the fun back to SEO with Python