Skip to content

Instantly share code, notes, and snippets.

@db-pj
Last active March 1, 2019 19:43
Show Gist options
  • Save db-pj/904002a02fbd62b79ba6eb367c5c9c75 to your computer and use it in GitHub Desktop.
Save db-pj/904002a02fbd62b79ba6eb367c5c9c75 to your computer and use it in GitHub Desktop.
Screaming Frog XPath Extract relative URLs
//a[contains(@href, 'mbl/visit?site=') and not(contains(@href, 'https://www.datingadvice.com'))]/@href
//a[contains(@href, 'official-site/?offer=') and not(contains(@href, 'https://www.cardrates.com'))]/@href
//a[contains(@href, 'mbl/go/?offer=') and not(contains(@href, 'https://www.badcredit.org'))]/@href
//a[contains(@href, 'visit/?offer=') and not(contains(@href, 'https://www.hostingadvice.com'))]/@href
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment