Skip to content

Instantly share code, notes, and snippets.

@pratik-dani
Created August 31, 2025 15:55
Show Gist options
  • Select an option

  • Save pratik-dani/f54a04159f523c1494a10b7bbb769ab4 to your computer and use it in GitHub Desktop.

Select an option

Save pratik-dani/f54a04159f523c1494a10b7bbb769ab4 to your computer and use it in GitHub Desktop.
LinkedIn Scraper
{
"name": "LinkedIn Scraper",
"nodes": [
{
"parameters": {
"workflowInputs": {
"values": [
{
"name": "linkedin_url"
}
]
}
},
"type": "n8n-nodes-base.executeWorkflowTrigger",
"typeVersion": 1.1,
"position": [
-464,
536
],
"id": "7308a25c-1849-4b75-90a7-c742de76eb8e",
"name": "When Executed by Another Workflow"
},
{
"parameters": {},
"type": "n8n-nodes-base.noOp",
"name": "Check Again",
"typeVersion": 1,
"position": [
880,
632
],
"id": "84f6f6eb-81ba-43a1-96c6-01f6279a13e5"
},
{
"parameters": {
"resource": "webScrapper",
"operation": "monitorProgressSnapshot",
"snapshot_id": "={{ $json.snapshot_id }}",
"requestOptions": {}
},
"type": "@brightdata/n8n-nodes-brightdata.brightData",
"typeVersion": 1,
"position": [
208,
464
],
"id": "af2ac5d0-f588-44d5-9352-eb5c037e1eca",
"name": "Check the status of a batch extraction",
"credentials": {
"brightdataApi": {
"id": "cghP2sCmubIaCvoX",
"name": "BrightData account"
}
}
},
{
"parameters": {},
"type": "n8n-nodes-base.wait",
"typeVersion": 1.1,
"position": [
656,
560
],
"id": "9f768392-572b-4725-9e4a-3e0b87584ebc",
"name": "Wait 5 Seconds",
"webhookId": "394e4b54-606d-4c4c-a58d-0b2a961abed9"
},
{
"parameters": {
"conditions": {
"options": {
"caseSensitive": true,
"leftValue": "",
"typeValidation": "strict",
"version": 2
},
"conditions": [
{
"id": "521904c4-36ac-4af8-858f-56bb7620d300",
"leftValue": "={{ $json.status }}",
"rightValue": "ready",
"operator": {
"type": "string",
"operation": "equals",
"name": "filter.operator.equals"
}
}
],
"combinator": "and"
},
"options": {}
},
"type": "n8n-nodes-base.if",
"typeVersion": 2.2,
"position": [
432,
464
],
"id": "b38b4cc0-89eb-4e7c-8e61-b7dc8a357f4e",
"name": "If"
},
{
"parameters": {
"resource": "webScrapper",
"operation": "downloadSnapshot",
"snapshot_id": "={{ $json.snapshot_id }}",
"requestOptions": {}
},
"type": "@brightdata/n8n-nodes-brightdata.brightData",
"typeVersion": 1,
"position": [
656,
368
],
"id": "088f2ce4-1300-44e5-8818-da07376ff9f6",
"name": "Download the snapshot content",
"alwaysOutputData": true,
"credentials": {
"brightdataApi": {
"id": "cghP2sCmubIaCvoX",
"name": "BrightData account"
}
}
},
{
"parameters": {
"options": {
"reset": true
}
},
"type": "n8n-nodes-base.splitInBatches",
"typeVersion": 3,
"position": [
-16,
536
],
"id": "c992bd2a-a135-49f9-b73b-32f7b2f22fe1",
"name": "Loop Over Items"
},
{
"parameters": {
"resource": "webScrapper",
"operation": "triggerCollectionByUrl",
"dataset_id": {
"__rl": true,
"value": "gd_l1vikfnt1wgvvqz95w",
"mode": "list",
"cachedResultName": "LinkedIn company information"
},
"urls": "=[{\"url\": \"{{ $json.linkedin_url }}\"}]",
"requestOptions": {}
},
"type": "@brightdata/n8n-nodes-brightdata.brightData",
"typeVersion": 1,
"position": [
-240,
536
],
"id": "f75344d9-502f-4618-ac88-5454c9f28a16",
"name": "Initiate batch extraction from URL",
"credentials": {
"brightdataApi": {
"id": "cghP2sCmubIaCvoX",
"name": "BrightData account"
}
}
}
],
"pinData": {
"When Executed by Another Workflow": [
{
"json": {
"linkedin_url": "https://www.linkedin.com/company/microsoft"
}
}
]
},
"connections": {
"When Executed by Another Workflow": {
"main": [
[
{
"node": "Initiate batch extraction from URL",
"type": "main",
"index": 0
}
]
]
},
"Check Again": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Check the status of a batch extraction": {
"main": [
[
{
"node": "If",
"type": "main",
"index": 0
}
]
]
},
"Wait 5 Seconds": {
"main": [
[
{
"node": "Check Again",
"type": "main",
"index": 0
}
]
]
},
"If": {
"main": [
[
{
"node": "Download the snapshot content",
"type": "main",
"index": 0
}
],
[
{
"node": "Wait 5 Seconds",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[],
[
{
"node": "Check the status of a batch extraction",
"type": "main",
"index": 0
}
]
]
},
"Initiate batch extraction from URL": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "da552b06-6b43-4ef4-ad12-e1344197aed5",
"meta": {
"instanceId": "4b2ada92eac5fa9c8485e82fc999c531ceecbe4766408fa5795a0a1a333d5b3c"
},
"id": "u1EwvBzM4mhMCGeC",
"tags": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment