SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
1.
SLIDESHARE.NET/BGOERLER
BRINGING THE FUN BACK TO SEO
WITH PYTHON
BENJAMIN GÖRLER // AYIMA //
@ayima
2.
BRACE YOURSELVES
INFORMATION OVERLOAD
IS COMING!
3.
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)
4.
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)
9.
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!
16.
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
18.
python paramsfinder.py -i crawl.csv -o output.csv
The Python Way
Evoke python Script name
input argument output argument
input file output file
19.
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
20.
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
21.
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
35.
You Can Potentially
Automate Everything
With Python
Facet
Optimisation
Reporting
Keyword
Research
Internal Linking
Analysis
Redirect
Hops
Ad
Campaigns
36.
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
37.
Useful resources
Prerequisites
• Command Line
(Windows)
• Terminal (Mac)
• Python
Environment
Using Python
• Python tutorial
• Online
community
• Ayima’s blog