Ever wanted to find instances of a certain keyword on pages of a site that you can use as anchor text when creating more internal links? I did, when I was working on this website that sells curtain poles.
There’s a few ways of doing this, including a simple ‘site:’ search on Google, or using Screaming Frog’s search feature.
The Custom extraction method with Screaming Frog has a few benefits though:
- You can search for several phrases at once
- You can search only for occurrences of the keyword within <p> tags (to avoid returning occurrences that are already within links/nav menus/headings)
- You can include a column to show if there is already a link to the page that you’re trying to build internal links to
It’s pretty easy:
//p[text()[contains(.,'keyword or phrase')]]
//p/a[@href[contains(.,'URL of page')]]

Got a question? Leave it in the comments below