Screaming frog + xpath en

Screaming Frog + Xpath
Crawl specific page elements on your own or
competitor‘s websites
@Urlaubspiraten #SEO4Pirates Nr.6
Sabine Langmann
Level 1
23.08.2018 Sabine Langmann Bit.ly/abjsd
What is this about?
23.08.2018 Sabine Langmann Bit.ly/abjsd
We‘d like: to crawl specific
elements on our own web pages
or the ones of our competition
We use: Screaming Frog‘s
Custom Search + XPath
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
Level 2
23.08.2018 Sabine Langmann Bit.ly/abjsd
Who am I?
Geek. SEO. Kuchen.
23.08.2018 Sabine Langmann Bit.ly/abjsd
Who am I?
http://sabine-langmann.com
https://www.linkedin.com/in/sabine-langmann/
@SabTheLa
@sababeille
23.08.2018 Sabine Langmann Bit.ly/abjsd
Slides available at:
https://www.slideshare.net/SabineLangmann
23.08.2018 Sabine Langmann Bit.ly/abjsd
Level 3Level 3
23.08.2018 Sabine Langmann Bit.ly/abjsd
Xpath
23.08.2018 Sabine Langmann Bit.ly/abjsd
XPath (XML Path Language) is a
query language
for selecting nodes
from an XML document.
Wikipedia
23.08.2018 Sabine Langmann Bit.ly/abjsd
Simple Syntax
node every page element (e.g. H2, a, p, div)
// adresses a certain node
attribute attribute of a node (e.g. class, id)
@ adresses a certain attribute
count() counts addressed nodes
23.08.2018 Sabine Langmann Bit.ly/abjsd
Simple Syntax
23.08.2018 Sabine Langmann
//node[@attribute="attribute_name"]
bit.ly/2o3vJ5O
Simple Syntax
23.08.2018 Sabine Langmann
count(//node[@attribute="attribute_name"])
bit.ly/2o3vJ5O
Level 4
23.08.2018 Sabine Langmann Bit.ly/abjsd
Some use cases
23.08.2018 Sabine Langmann Bit.ly/abjsd
Urlaubspiraten
vs.
Sonnenklar TV
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
How many images?
How many H2, H3, etc?
How many words?
How many links to which pages?
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
How many images?
How many H2, H3, etc?
How many words?
How many links to which pages?
Step #1
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
Step #1
23.08.2018 Sabine Langmann Bit.ly/abjsd
Step #2
23.08.2018 Sabine Langmann Bit.ly/abjsd
Step #2
What am I searching for?
23.08.2018 Sabine Langmann Bit.ly/abjsd
Step #3
In
<div class="htmlContent">
I‘m searching for links, which is
<a>-Tags
23.08.2018 Sabine Langmann Bit.ly/abjsd
Step #3
Suitable Xpath selector:
//div[@class ="htmlContent"]//a
23.08.2018 Sabine Langmann Bit.ly/abjsd
3. Schritt
23.08.2018 Sabine Langmann Bit.ly/abjsd
Step #4
23.08.2018 Sabine Langmann Bit.ly/abjsd
Step #4
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
Result
Result
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
usw.23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
In
<div class="container">
I‘m searching for
the number of H3
23.08.2018 Sabine Langmann Bit.ly/abjsd
Suitable Xpath selector:
count(//div[@class ="container"]//h3)
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
Result
Result
23.08.2018 Sabine Langmann Bit.ly/abjsd
Gutscheinsammler
vs.
Sparwelt
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
Which star rating?
How many words in the intro?
How many active coupon codes?
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
Suitable Xpath selector:
//button[@data-vouchertype="is__discounts"]//span
23.08.2018 Sabine Langmann Bit.ly/abjsd
Result
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
How many active coupon codes?
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
Suitable Xpath selector:
count(
//div[@class="media-list vouchers-active"]
//div[@class="col-xs-12 col-sm-5"]
//span[@class="text"]
)
23.08.2018 Sabine Langmann Bit.ly/abjsd
Result
23.08.2018 Sabine Langmann Bit.ly/abjsd
Kino.de
vs.
Serienjunkies
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
How many words in the description?
23.08.2018 Sabine Langmann Bit.ly/abjsd
Suitable Xpath selector:
//section[@class="smb-post-body"]//p
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
Result
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
How many words in the description?
23.08.2018 Sabine Langmann Bit.ly/abjsd
Suitable Xpath selector:
//section//p
23.08.2018 Sabine Langmann Bit.ly/abjsd
23.08.2018 Sabine Langmann Bit.ly/abjsd
Result
23.08.2018 Sabine Langmann Bit.ly/abjsd
Level 5
23.08.2018 Sabine Langmann Bit.ly/abjsd
Recap:
Which data do I need?
Can I crawl the respective elements?
What is the right Xpath selector?
That‘s it!
23.08.2018 Sabine Langmann Bit.ly/abjsd
Screaming frog + xpath en
1 of 73

More Related Content

What's hot(9)

Boston Area SharePoint Users Group November 9th, 2011 MeetingBoston Area SharePoint Users Group November 9th, 2011 Meeting
Boston Area SharePoint Users Group November 9th, 2011 Meeting
Boston Area SharePoint Users Group269 views
4/13/11 Boston Area SharePoint Users Group Meeting4/13/11 Boston Area SharePoint Users Group Meeting
4/13/11 Boston Area SharePoint Users Group Meeting
Boston Area SharePoint Users Group300 views
7/14/10 Boston Area SharePoint Users Group Meeting7/14/10 Boston Area SharePoint Users Group Meeting
7/14/10 Boston Area SharePoint Users Group Meeting
Boston Area SharePoint Users Group362 views
2/9/11 Boston Area SharePoint Users Group Meeting2/9/11 Boston Area SharePoint Users Group Meeting
2/9/11 Boston Area SharePoint Users Group Meeting
Boston Area SharePoint Users Group258 views
Sistrix - SEO Do's and Don'tSistrix - SEO Do's and Don't
Sistrix - SEO Do's and Don't
Amazon Associates UK353 views
BASPUG Meeting deck from 7/11/12BASPUG Meeting deck from 7/11/12
BASPUG Meeting deck from 7/11/12
Boston Area SharePoint Users Group453 views
MAA Southeast Section Picture SlideshowMAA Southeast Section Picture Slideshow
MAA Southeast Section Picture Slideshow
Jon Ernstberger246 views
Boston Area SharePoint Users Group January 11th, 2012 MeetingBoston Area SharePoint Users Group January 11th, 2012 Meeting
Boston Area SharePoint Users Group January 11th, 2012 Meeting
Boston Area SharePoint Users Group257 views

Recently uploaded(20)

B2B Lead Generation - Driving Sales from Marketing - Anet (de Kock) van Stade...B2B Lead Generation - Driving Sales from Marketing - Anet (de Kock) van Stade...
B2B Lead Generation - Driving Sales from Marketing - Anet (de Kock) van Stade...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions31 views
Driving value from first-party data in a privacy-centric world - Vimal Badian...Driving value from first-party data in a privacy-centric world - Vimal Badian...
Driving value from first-party data in a privacy-centric world - Vimal Badian...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions47 views
Understanding Your Consumer Through Data - Hiram Enriquez & Katie Mack, Amazo...Understanding Your Consumer Through Data - Hiram Enriquez & Katie Mack, Amazo...
Understanding Your Consumer Through Data - Hiram Enriquez & Katie Mack, Amazo...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions32 views
Data Sources to Produce Better Organic Visibility - Nick Kruger, Ogilvy SAData Sources to Produce Better Organic Visibility - Nick Kruger, Ogilvy SA
Data Sources to Produce Better Organic Visibility - Nick Kruger, Ogilvy SA
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions31 views
Growing The Small To Medium E-commerce Enterprise Market - Chanel Hardman, Us...Growing The Small To Medium E-commerce Enterprise Market - Chanel Hardman, Us...
Growing The Small To Medium E-commerce Enterprise Market - Chanel Hardman, Us...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions34 views
 social media marketing tips  social media marketing tips
social media marketing tips
aysh2afidha35 views
Social Media Marketing Master Class - Uptin Saiidi, Up10 MediaSocial Media Marketing Master Class - Uptin Saiidi, Up10 Media
Social Media Marketing Master Class - Uptin Saiidi, Up10 Media
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions49 views
Growing Beyond Expectations, 10 Marketing Lessons From Hyper-growth Companies...Growing Beyond Expectations, 10 Marketing Lessons From Hyper-growth Companies...
Growing Beyond Expectations, 10 Marketing Lessons From Hyper-growth Companies...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions28 views
Revolutionizing Marketing - Harnessing the Power of AI - Michael Letschin, BrevoRevolutionizing Marketing - Harnessing the Power of AI - Michael Letschin, Brevo
Revolutionizing Marketing - Harnessing the Power of AI - Michael Letschin, Brevo
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions31 views
Panel - Digital Marketing Trends Experts Insights on How to Gain a Competitiv...Panel - Digital Marketing Trends Experts Insights on How to Gain a Competitiv...
Panel - Digital Marketing Trends Experts Insights on How to Gain a Competitiv...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions18 views
The Art and Science of Data-Driven Creativity (in Advertising) - Ken Gamage, ...The Art and Science of Data-Driven Creativity (in Advertising) - Ken Gamage, ...
The Art and Science of Data-Driven Creativity (in Advertising) - Ken Gamage, ...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions18 views
How Brands Are Making Better Digital Marketing Decisions - Neil Pursey, Measu...How Brands Are Making Better Digital Marketing Decisions - Neil Pursey, Measu...
How Brands Are Making Better Digital Marketing Decisions - Neil Pursey, Measu...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions31 views
The Modern Content Challenge - Charlie Bell, ContentfulThe Modern Content Challenge - Charlie Bell, Contentful
The Modern Content Challenge - Charlie Bell, Contentful
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions49 views
Panel - Digital Marketing in the New Era of Privacy & Data Governance - Ashle...Panel - Digital Marketing in the New Era of Privacy & Data Governance - Ashle...
Panel - Digital Marketing in the New Era of Privacy & Data Governance - Ashle...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions32 views
Customer Experience Master Class - Hazem El Zayat, OgilvyCustomer Experience Master Class - Hazem El Zayat, Ogilvy
Customer Experience Master Class - Hazem El Zayat, Ogilvy
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions48 views
How To Build Digital Marketing Strategies - Kuralay Assainova, Liana Technolo...How To Build Digital Marketing Strategies - Kuralay Assainova, Liana Technolo...
How To Build Digital Marketing Strategies - Kuralay Assainova, Liana Technolo...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions52 views
Digital Marketing Trends - Kuralay Assainova, Liana TechnologiesDigital Marketing Trends - Kuralay Assainova, Liana Technologies
Digital Marketing Trends - Kuralay Assainova, Liana Technologies
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions48 views
Building A Content Engine For Scale - Eda Kavlakoglu, IBMBuilding A Content Engine For Scale - Eda Kavlakoglu, IBM
Building A Content Engine For Scale - Eda Kavlakoglu, IBM
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions34 views
Harnessing the power of FREE behavioral analytics with Microsoft Clarity - Ah...Harnessing the power of FREE behavioral analytics with Microsoft Clarity - Ah...
Harnessing the power of FREE behavioral analytics with Microsoft Clarity - Ah...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions32 views
Retail Trends in 2023 How The Economy And Consumers Will Continue To Shape Th...Retail Trends in 2023 How The Economy And Consumers Will Continue To Shape Th...
Retail Trends in 2023 How The Economy And Consumers Will Continue To Shape Th...
DigiMarCon - Digital Marketing, Media and Advertising Conferences & Exhibitions32 views

Screaming frog + xpath en