Scrape CareClinics locations and log them to Google Sheets by state
Ready for 3.0What this workflow does
This workflow has 11 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets. It also calls careclinics.com.my over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Initialize Page Count (Code): runs custom JavaScript code
- Post Clinic Locations (HTTP Request): calls careclinics.com.my (POST)
- Parse Clinic Data (Code): runs custom JavaScript code
- Check for Additional Pages (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Wait: waits 1 seconds
- Emit All Clinic Records (Code): runs custom JavaScript code
- Loop Through Clinics (Loop Over Items (Split in Batches)): loops over the items in batches
- Wait: waits 2 seconds
- Append to Clinic Sheets (Google Sheets): append or update
Services it uses
HTTP calls to: careclinics.com.my
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if - Wait
n8n-nodes-base.wait - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick overview This workflow manually scrapes CareClinics location listings via HTTP requests, extracts clinic name, address, phone, email, and inferred state, then appends or updates the results into state-specific tabs in a Google Sheets spreadsheet. How it…