Developer & DevOps

Extract Web Data and Store in MongoDB

23 nodes 306 155 Automatic trigger
Download

Workflow Description

Automation that retrieves HTML content from web pages, processes it in batches, and stores the extracted data in MongoDB. Includes binary file handling, conditional logic, and system command execution for flexible data pipeline workflows.

How it works

  1. 1.Trigger manually or via HTTP request with target URL and processing parameters
  2. 2.Fetch and parse HTML content from the specified web page
  3. 3.Split data into batches for efficient concurrent processing
  4. 4.Apply conditional logic and custom transformations to each batch
  5. 5.Write validated records directly to MongoDB collections
  6. 6.Handle binary files and execute system commands as pipeline requires

Use cases

  • Scrape product catalogs and prices from e-commerce sites into MongoDB for analytics
  • Monitor website changes and automatically extract updated information in bulk
  • Build data pipelines that combine web scraping with custom processing rules

Requirements

  • Active MongoDB account with connection credentials and proper database access
  • Valid URLs for web pages containing data to extract
  • System permissions for binary file operations and command execution if required

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

HTML Split In Batches MongoDB Uproc

Details

Trigger Automatic trigger
Nodes 23
Apps 4
Views 306
Downloads 155

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (23)

/

On clicking 'execute'

Manual Trigger

#1

HTTP Request

HTTP Request

#2

HTML Extract

HTML Page

#3

SplitInBatches

Split In Batches

#4

HTTP Request1

HTTP Request

#5

HTML Extract1

HTML Page

#6

MongoDB1

Mongo Db

#7

uProc

Uproc

#8

Prepare Documents

Function

#9

More Countries

If

#10

Set Page to Scrape

Function Item

#11

More Pages

If

#12

Set More Pages

Function

#13

Set

Set

#14

Generate filename

Function Item

#15

Read Binary File

Read Binary File

#16

File exists?

If

#17

Write Binary File

Write Binary File

#18

Read Binary File1

Read Binary File

#19

Wait

Function

#20

Prepare countries

Function

#21

Create Directory

Execute Command

#22

MongoDB

Mongo Db

#23