Use this powerful n8n workflow template to perform deep, recursive web scraping. Scrape content up to a specified depth and automatically save all extracted data into a centralized Google Doc, tracking URLs via Google Sheets. This n8n workflow leverages the specialized Airtop n8n node for advanced extraction.
Download this n8n workflow template and start using it instantly.
Content Researchers: Individuals needing to build comprehensive knowledge bases or RAG systems by extracting large amounts of targeted content.
SEO Specialists: Users tracking website architecture and content density across many linked pages.
Developers & Integrators: Professionals looking for robust n8n templates for recursive data acquisition.
Anyone needing recursive web scraping: Users who require a reliable n8n workflow solution for multi-level site crawls.
This comprehensive n8n workflow is designed to automate the challenging task of recursive web scraping. Instead of manually clicking through a site, this n8n template uses the Airtop n8n node to intelligently crawl links up to a user-defined depth.
It provides a centralized system for tracking scraped URLs (using Google Sheets) and storing the resulting content (in Google Docs), making it one of the most practical n8n templates for serious data collection.
By leveraging the On form submission or Execute Workflow as the n8n trigger, users can specify the starting URL, the necessary link inclusion string, and the desired scraping depth, creating a truly dynamic and repeatable n8n workflow.
This powerful n8n workflow executes in several distinct phases, managing state using Google Sheets to prevent redundant scraping and track depth:
On form submission or When Executed by Another Workflow) accepts the 'Seed url', 'Links must contain' filter, and 'Depth'. The workflow then uses the Unify params n8n node to standardize the input.Create Spreadsheet) is generated to track all found URLs and their scraping status. The initial seed URL is immediately appended (Load info to spreadsheet).Scrape webpage Airtop n8n node. A new Google Doc is created, and the initial scraped content is written to it.Should scrape more? n8n node (an If node) checks if the current iteration count ($runIndex) is less than the defined depth minus one. If true, the recursive loop continues.Read scraped webpages). The Airtop n8n node (Retrieve links to scrape) is used to intelligently query the recently scraped page for new internal links.Code n8n node (Filter links to insert to Sheets) processes the extracted links, ensuring they contain the required filter string and removing any duplicates already listed in the Google Sheet. Insert new links).Scrape webpage1) to extract content and appending this content to the centralized Google Doc (Update with new scraped content).Insert flag) to mark the current iteration, concluding one loop of the recursive process and preparing for the next depth level, demonstrating the efficiency of this n8n workflow.To deploy this efficient n8n workflow, follow these steps:
When Executed by Another Workflow n8n trigger from another n8n workflow. On form submission / When Executed by Another Workflow (n8n Trigger): Serves as the starting n8n trigger. Configured to accept three essential parameters: Seed url, Links must contain (string filter), and Depth (number of recursive levels).
Create Spreadsheet (Google Sheets n8n node): Initializes a new Google Sheet named dynamically using the seed URL, serving as the central URL registry for this n8n workflow.
Load info to spreadsheet (Google Sheets n8n node): Appends the initial Seed URL to the newly created tracking sheet.
Scrape webpage / Scrape webpage1 (Airtop n8n node): Performs the heavy lifting of web extraction. Uses the 'extraction' resource and 'scrape' operation to pull content from the target URL.
Create Google Docs / Write scraped content (Google Docs n8n node): Manages the central document where all scraped text is aggregated. The initial setup creates the document, and subsequent steps use the 'update' operation to append more content.
Should scrape more? (If n8n node): The core logic for recursion. It compares the current run index ($runIndex) against the target depth to control the looping process, ensuring the n8n workflow stops at the specified level.
Retrieve links to scrape (Airtop n8n node): A smart n8n node using the 'query' operation and a JSON schema output to extract structured internal links from the scraped page content.
Filter links to insert to Sheets (Code n8n node): Custom JavaScript logic that handles filtering (based on the input string) and advanced deduplication against all links already present in the Google Sheet, optimizing the recursive crawl for this n8n workflow.
Deploy a powerful n8n workflow that uses SearchAPI and an OpenRouter LLM (DeepSeek) to answer questions, browse the web, and generate responses with verifiable citations. Leverage this advanced n8n template.

Create a powerful n8n Agent that interprets complex search requests, generates Firecrawl query strings, and extracts structured data including full-page screenshots using this robust n8n workflow template.

Use this powerful n8n workflow template to crawl full website sitemaps, reliably extract content using direct HTTP requests, apply respectful rate limiting, and save the formatted, structured Markdown files directly into Google Drive. Perfect for content archiving.

Use this n8n workflow to automatically scan websites for security vulnerabilities using OpenAI. Generate detailed, graded security reports and send them via Gmail. Find advanced n8n templates for DevSecOps.

Use this structured n8n workflow to analyze uploaded PDFs automatically. Featuring file validation (size/pages) and AI summarization via an OpenAI n8n node, this n8n templates solution is perfect for structured data extraction.

Airtop provides an intelligent browser automation API for AI agents, enabling seamless web interaction, including login, navigation, and data extraction from any site, even those with complex authentication - all with natural language instructions.In simple terms, we allow you to automate anything humans can do online, on any site with just words