Home > Screaming Frog > Screaming Frog Custom Extractions: A Guide to Extracting Crawl Data
Screaming Frog Custom Extractions: A Guide to Extracting Crawl Data
Screaming Frog is a powerful SEO tool with many search engine optimization features. One of the lesser-known features, Screaming Frog Custom Extractions, allows you to easily extract data from your crawls. This blog post will discuss how Screaming Frog Custom Extraction works and why it can help improve your SEO efforts!
Websites have a ton of helpful information—most times, it’s too laborious or complicated to visit every page on a website to copy product data, metadata, title tags, and anchor text into a spreadsheet. Here is where Screaming Frog comes to the rescue with custom data extractions to automate the process. Custom extractions are a form of web scraping, web harvesting, or web data extraction used to scrape and extract data from websites, allowing you to store it locally on your computer.
The Screaming Frog SEO Spider software is a website crawler that improves onsite SEO by extracting and analyzing your website’s data using a graphical user interface (GUI).
What are custom extractions?
Custom extractions are Screaming Frogs SEO spider functions to extract explicit information from web pages. These extractions help optimize your site for Technical SEO, including search results, gather essential data on your copy, and help locate and fix errors.
How is Data Extraction done?
The process of data extraction involves pulling the required data on your website using a Screaming Frog web spider. The information is saved within Screaming Frog’s memory, giving you the option to export your scanned results to Excel or Google Sheets for further review.
Why is Data Extraction critical?
Data extraction allows you to harvest large amounts of data quickly and efficiently. This automation gives you immediate results of web architecture. This process saves you time and resources while giving you the valuable data you’ll need to plan and strategize search engine optimization strategies.
Screaming Frog is the go-to Web Scraper Tool for SEOs. The options are endless; here are a ton of custom web-scraping syntaxes.
How to Extract Custom Data using Screaming Frog
1. In ScreamingFrog, go to Configuration > Custom > Extraction.
2. Next, you will need to +Add and set up your extraction rules.
3. Add a Title, 4. Select if you need CSSPath, XPath, or Regex, 5. Add your search function.
If you aren’t sure which selector or function you need, look at the examples below or use the inspect element function in Google Chrome Dev Tools. You can open Dev Tools by using “right-click” in the Google Chrome browser.
Here is an example of how you would scrape for a Facebook Pixel ID
In the Results, you can see, one of my pages is missing a Facebook Pixel:
Below are predefined custom extraction datasets to get you started.
Basic Syntax for using XPath Web Scraping
Search anywhere within the document
Search within the root of the website
Select a specific attribute of an element
Wildcard is used to select any element
Find a specific element
Specifies the current element
Specifies the parent element
Extract all H1 tags
Extract the first H2 tag
Extract the second H2 tag
Extracts any <p> contained within a <div>
Extracts any <div> with class “author”
Extracts any <p> with class “content”
Extracts any element with class “content”
Extracts the last <li> in a <ul>
Extracts the first <li> in a <ol> with class “cat”
Counts the number of H2’s (set extraction filter to “Function Value”)
Extracts any link with anchor text containing “learn more”
Extracts any link with a title starting with “Written by.”
How to Extract Common HTML Elements
Extracts all links
Extracts the link that starts with “mailto:” (email address)
Extracts all image source URLs
Extracts all image source URLs for images containing the class name “aligncenter.”
Extracts elements with the rel attribute set to “alternate.”
Isaac Adams-Hands is the SEO Director at SEO North, a company that provides Search Engine Optimization services. As an SEO Professional, Isaac has considerable expertise in On-page SEO, Off-page SEO, and Technical SEO, which gives him a leg up against the competition.