claybook

Extract data from paginated databases in seconds

Don’t let pagination stop you from extracting the custom data you need to fuel your marketing and sales. Extract it with Clay instead.

Before we begin

Manually scraping data from large, paginated databases takes forever. And many web scrapers simply can’t navigate pagination easily to do it automatically. 

Good news: this Claybook uses Zenrow and Clay’s custom formulas to scrape paginated databases in seconds. 

How it works: 

  • Create thousands of paginated database URLs using Clay formulas, automatically 
  • Use Zenrows (natively integrated in Clay) to scrape each page, one by one
  • Use scraped data for enrichment, personalization, outbound, and more

Steps

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Step 1:

Copy this template

First, copy this template in Clay. 

If you’re already a user, you’ll be directed to your workspace. If not, you’ll be prompted to create a free Clay account.

The interactive demos on the right will walk you through each step of this Claybook. 

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Step 2:

Add paginated page numbers

How many pages exist in the paginated database you want to scrape? Add them to the first column, giving each page its own row. We’ll use these page numbers in the next step to create dynamic URLs. 

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Step 3:

Create pagination URLs using Clay formulas 

Next, so you don’t have to manually paste URLs into Clay, we’ll use a formula to add the page number to the database URL string automatically. Simply paste the URL of the database in the formula and insert the page number cell in the proper spot. 

Once finished, run the Zenrow data scrape column. 

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Step 4:

Edit AI data cleaning prompt to fit your needs

Next, to ensure we’re pulling usable data from often complex databases, use ChatGPT to clean the dataset. 

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Step 5:

Write data to another table for further enrichment 

Last, write your newly scraped database data to a new table. Why? We want to get all the datapoints into their own columns. The only way to do that is to write to a new table. In the new table, you can use this data for anything, like further enrichment or for outbound messaging. 

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Copy the template

Start scraping paginated databases in seconds. 

Simply copy this template, follow the steps above, and let Clay work its magic. 

Copy this template

Need help?

If you have any issue, you can ask for help in Slack or schedule time with a Clay expert.

Learn with our resources

Check out Clay University, read our GTM blog, or try out our top templates to transform your growth ideas into outreach in minutes.

Clay branded illustration of a wall made out of 3D, colourful, clay bricks and a whimsical person opening a door in the wall to access a new world of opportunities.

Clay University

Master Clay in a few core lessons. Uplevel your data enrichment, craft better outbound messages, and book more meetings.

Learn with Clay

Go to market blog

Our best content on growing your GTM motion, from outbound sales automation to AI lead generation.

Explore our blog
Clay branded illustration made out of 3D clay objects showing  whimsical operators connecting cables to 3D Clay table

Integrations

Browse through all the integrations you can connect to Clay in seconds and discover what you can do!

Explore integrations
Clay branded illustration of a Clay table with colourful, 3D connectors made out of Clay around it

Templates

Power your outbound campaigns with our best templates.

Visit clay templates
Clay branded illustration of a messy tangle of 3D, colourful strings made out of clay being untangled into one, colourful, twisted string

Clay Experts

Hire a Clay Enterprise expert or find a Clay partner to help with your next project

Explore Clay experts

Clay's Chrome extension

Clay’s Chrome Extension makes it wicked easy to find leads almost anywhere on the internet

Explore Chrome Extension