Skip to main content

How to extract data across multiple pages (deep scraping)?

Use workflows to connect multiple robots to scrape content across multiple pages: one to gather lists of items, another to get details from subpage(s).

M
Written by Melissa Shires

When building a web scraper or monitors, you'll often encounter this scenario:

  • A list page which shows basic information (like product names and prices),

  • A detail page that lives on separate pages that you access by clicking each item.

This is called deep scraping. Deep scraping is a way to extract data from multiple linked pages on a website. Simply put, it's how you scrape an entire website across multiple layers vs. a singular web page.

Depending on how the website you want to scrape or monitor is structured, you can deep scrape by:

  • Category - category > sub category > page

  • Site search - search term > results > page

  • Navigation - navigate > scrape links > pages

  • Site map - scrape site map > pages

Popular use cases for deep scraping include:

  • E-commerce price and product monitoring to create a database of product and prices based on category or search terms.

  • Scraping and monitoring directories for lead generation.

  • Competitive monitoring to scrape entire websites.

How do I deep scrape with Browse AI?

There are two ways you can set up deep scraping with Browse AI depending on the data you want to scrape or monitor, and the structure of the website.

What it does

When it's ideal

Bulk run

Upload a CSV of URLs or Input parameters to scrape a whole list of pages in one bulk run.

  • Site search deep scraping

  • Single use static dataset

Workflow

Connect multiple robots to automatically scrape all pages and sub pages.

  • Monitored or 'live' data

  • Category deep scraping

Bulk run: How to deep scrape with bulk runs

Read our Bulk Run Guide here to learn how to set up a bulk run to scrape and monitor a list of URLs or input parameters.

Workflows: how to deep scrape using workflows

A basic workflow to deep scrape involves two main steps:

  • Robot A: a robot scrapes a list or category page to collect basic information and URLs.

  • Robot B: a robot that visits each URL to extract or scrape detailed information from individual pages.

Note that using workflows you can connect as many robots as you'd need depending on the structure of the data you need to scrape.

Step 1. Train Robot A to scrape a list or category page to get a list of URLs

In this first step, you'll create a robot that scrapes or extracts a list of URLs based on:

  1. Go to the category page URL.

  2. Click Start Training Robot (or Train robot) and choose Table Studio. The AI agent finds the repeating items (like products, job listings, or properties) and proposes the columns. Make sure one column holds the URL that links to the detail pages. In Robot Studio, use Capture List and capture the URL field.

  3. Name the robot with the pencil icon next to its name, then click Save Robot.

Step 2: Train Robot B to extract, monitor or scrape details

  1. Create a second robot using one of the URLs for the details page.

  2. Train the robot to scrape, structure and monitor the data you'd like.

  3. Name the robot, then click Save Robot (in Robot Studio: finish, approve and name it).

Step 3: Connect these two robots together using workflows

Automatically feed the URLs from Robot A into Robot B by creating a workflow.

If Robot B already exists when you save Robot A, a Recommendation card may offer to connect them. Click Create workflow and the workflow opens with both robots and the URL column filled in.

  1. Go to Workflows and click Add new workflow.

  2. Choose Robot A as the Starter Robot and click Next Step. Choose Robot B. Its Origin URL fills in from Robot A's URL column; check it's the right one.

  3. Under Filter, choose Always, or run Robot B only when Robot A's monitor finds new or changed items. Click Save and Enable Workflow.

  4. To run it on a schedule, set up a monitor on Robot A. The workflow has no schedule of its own: each time Robot A runs, Robot B runs on the URLs it found.

How do I scrape a whole catalogue with Table Studio?

To get every product across many categories, combine a workflow with a bulk run. You can build both robots in Table Studio.

  1. Build the category list robot (Robot A). Train it in Table Studio on one category page. Check that one column holds the link to each product. You don't need to set up pagination: the agent finds the next button, load more or infinite scroll. When you save, choose how many items to extract from the list at most (up to 5,000).

  2. Build the product detail robot (Robot B). Open one product page from that category and train a second robot on it in Table Studio. Add the columns you want from every product page.

  3. Connect them with a workflow. Follow Step 3 above, or the workflows guide. Robot B's Origin URL comes from Robot A's product link column.

  4. Run Robot A on every category. Put your category page URLs in a CSV and start a bulk run on Robot A. Each category is one task. For each one, the workflow sends the product links Robot A finds to Robot B, and the product details land in Robot B's table.

💡 Each row in a bulk run, and each product page Robot B opens, is a task that uses credits. Start with two or three categories, check both tables, then run the rest.

If Robot A returns fewer products than the category page shows, check its list limit. It's one of the robot's inputs, so you can raise it on the Run Task tab or in the bulk run's CSV without retraining.

Common use cases for deep scraping

E-commerce product monitoring

  • Robot A collects product information from category pages.

  • Robot B visits each product page to gather specifications, reviews, and availability.

Real estate data

  • Robot A scans property listing pages for basic details.

  • Robot B visits individual property pages to collect specifications and amenities.

Lead generation of business listings

  • Robot A processes directory pages to gather business listings.

  • Robot B visits each business profile to extract contact details and services.

Best practices

  • Start by mapping out what the structure of the website and webpages looks like first. How many workflows/layers do you need?

  • Set up a monitor on Robot A to keep this data up to date. Each time it runs, the workflow runs Robot B on the URLs it finds.

Did this answer your question?