I'll help you create an n8n workflow for job scraping, but I need to mention some important considerations first:
Important Notes:
Many job sites have anti-scraping measures and terms of service that prohibit scraping
You'll need to respect rate limits to avoid being blocked
Consider checking robots.txt files and terms of service
Some platforms offer official APIs that might be better alternatives
Here's an n8n workflow structure for scraping jobs from platforms like Lever and Greenhouse:
Workflow Structure:
1. Schedule Trigger
Set to run daily or weekly to avoid overwhelming servers
2. Company URLs Node (Manual Trigger)
json Copy code
{
"companies": [
{
"name": "Company1",
"lever_url": "https://jobs.lever.co/company1",
"greenhouse_url": "https://boards.greenhouse.io/company1"
}
]
}
3. Split Companies (Split In Batches)
Process one company at a time
4. HTTP Request Node - Lever Jobs
URL: {{$node["Split Companies"].json["lever_url"]}}
Method: GET
Headers:
code Copy code
User-Agent: Mozilla/5.0 (compatible; JobBot/1.0)
5. HTML Extract Node - Lever
Extraction Values:
code Copy code
jobs: .posting (multiple)
title: .posting-name (text)
link: .posting (attribute: href)
location: .posting-categories .location (text)
6. HTTP Request Node - Greenhouse Jobs
URL: {{$node["Split Companies"].json["greenhouse_url"]}}
Method: GET
Headers: Same as above
7. HTML Extract Node - Greenhouse
Extraction Values:
code Copy code
jobs: .opening (multiple)
title: .opening a (text)
link: .opening a (attribute: href)
location: .opening .location (text)
8. Filter ML Intern Jobs (IF Node)
Condition:
javascript Copy code
{{$json.title.toLowerCase().includes('machine learning') &&
($json.title.toLowerCase().includes('intern') ||
$json.title.toLowerCase().includes('internship'))}}
9. Format Data (Set Node)
Values:
json Copy code
{
"Company": "{{$node['Split Companies'].json['name']}}",
"Job Title": "{{$json.title}}",
"Apply Link": "{{$json.link}}",
"Location": "{{$json.location}}",
"Platform": "{{$json.platform}}",
"Date Found": "{{$now}}"
}
10. Google Sheets Node
Operation: Append
Sheet ID: 1D6EoQYj-JAgpvSJ_b-60zPRDp57UcIKcEjtAratCRpQ
Range: A:F
11. Wait Node (between companies)
Amount: 2-5 seconds
Prevents overwhelming servers
Enhanced Version with Error Handling:
Additional Nodes:
Error Handler (IF Node after HTTP requests):
javascript Copy code
{{$json.statusCode === 200}}
Rate Limiter (Wait Node):
3-5 second delays between requests
Duplicate Checker (Code Node):
javascript Copy code
// Check if job already exists in sheet
const existingJobs = $('Google Sheets').all();
const currentJob = $json;
const isDuplicate = existingJobs.some(job =>
job.json['Job Title'] === currentJob.title &&
job.json['Apply Link'] === currentJob.link
);
return [{ json: { isDuplicate, ...currentJob } }];
Sample Company List for Testing:
json Copy code
[
{
"name": "Stripe",
"lever_url": "https://jobs.lever.co/stripe",
"greenhouse_url": null
},
{
"name": "Airbnb",
"greenhouse_url": "https://careers.airbnb.com/positions",
"lever_url": null
}
]
Setup Instructions:
Google Sheets Setup:
Make sure your sheet has headers: Company, Job Title, Apply Link, Location, Platform, Date Found
Share the sheet with your n8n Google service account
Authentication:
Set up Google Sheets credentials in n8n (OAuth2 or Service Account)
Testing:
Start with 1-2 companies to test the workflow
Monitor for blocks or rate limiting
Legal Considerations:
Check each company's robots.txt file
Respect rate limits (3-5 seconds between requests)
Consider reaching out to companies for permission
Many companies have official job APIs that might be better options
Would you like me to help you set up any specific part of this workflow or modify it for particular job platforms?