Scrape NSR specialist data into Google Sheets with pagination and detail pages
Ready for 3.0What this workflow does
This workflow has 15 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets. It also calls nsr.org.my over HTTP.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Fetch Session Cookie (HTTP Request): calls nsr.org.my
- Extract Cookie String (Code): runs custom JavaScript code
- Post Search for Cardiology (HTTP Request): calls nsr.org.my (POST)
- Initialize Page to (Code): runs custom JavaScript code
- Fetch Results Page (HTTP Request): calls an HTTP API
- Parse HTML Table Rows (Code): runs custom JavaScript code
- Check for Next Page (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Emit All Doctor Records (Code): runs custom JavaScript code
- Process Each Doctor Batch (Loop Over Items (Split in Batches)): loops over the items in batches
…plus 4 more steps. See the full node list below.
Services it uses
HTTP calls to: nsr.org.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 - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Wait
n8n-nodes-base.wait - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if
From the author
Quick overview This workflow manually scrapes Malaysia’s National Specialist Register (nsr.org.my) for a selected specialty (configured for Cardiology), paginates through all result pages, enriches each doctor by fetching their detail page, and appends or…