Build the website scraping loop
Now for the core scraping logic. You'll use Split In Batches to loop through each website URL, fetch its HTML content, and extract email addresses using regex.
The Split In Batches node is n8n's way of processing items one at a time. It has two outputs: one for the current batch (the item being processed) and one for when all items are done.
This exercise is part of the course
Building Marketing Workflows with n8n
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise