methods

Useful Xpath Extractors for Screaming Frog (and other SEO crawlers)

By November 29, 2018 No Comments

This post lists Xpath extractors that can be used in most SEO crawlers, but describes the exact implementation in Screaming Frog.

ValueXpathScreaming Frog Selection Value
Hreflang for specific country (example: GB)//link[@hreflang=”en-GB”]/@hrefInner Text
Count of all hreflang annotationscount(//link/@hreflang)Function Value
Count of all canonical tagscount(//link[@rel=’canonical’])Function Value
Extract JSON-LD//script[@type=”application/ld+json”]Inner Text
Extract AMP link//link[@rel=’amphtml’]/@hrefFunction Value
Extract Links with specific href value//a[contains(@href,”http://example.com “)]Function Value

 

David Sottimano

About David Sottimano

Founder of OpensourceSeo.org. Strategist at definemg.com

Leave a Reply