⚒️ Web site scraper for LLMs with Airtop

9,611 views · ⚒️ Engineering

💡 Pro Tip — HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it — it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

Recursive Web Scraping

Use Case

Automating web scraping with recursive depth is ideal for collecting content across multiple linked pages—perfect for content aggregation, lead generation, or research projects.

What This Automation Does

This automation reads a list of URLs from a Google Sheet, scrapes each page, stores the content in a document, and adds newly discovered links back to the sheet. It continues this process for a specified number of iterations based on the defined scraping depth.

Input Parameters:

How It Works

  1. Starts by reading the Seed URL from the Google Sheet.
  2. Scrapes each page and saves its content to the specified document.
  3. Extracts new links from each page that match the Links must contain string, appends them to the Google Sheet.
  4. Repeats steps 2–3 for the number of times specified by Depth - 1.

Setup Requirements

  1. Airtop API Key — free to generate.
  2. Credentials set up for Google Docs (requires creating a project on Google Console). Read how to.
  3. Credentials set up for Google Spreadsheet.

Next Steps

Read more about website scraping for LLMS

🔗 Nodes Used

Google Sheets, Google Docs, Execute Workflow Trigger, n8n Form Trigger, Airtop

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup