n8n Web Scraping: Extract Data from Any Website Automatically
Web scraping with n8n enables competitive intelligence, lead generation, price monitoring, and data collection workflows — all automated and connected to your business tools. This guide covers the best approaches to web scraping in n8n, from simple HTTP fetches to AI-powered data extraction with Claude.
Web Scraping Options in n8n
n8n supports several scraping approaches:
HTTP Request node: Fetch any URL. Returns raw HTML. Best for simple pages that don't require JavaScript rendering.
Browser automation (Puppeteer/Playwright via Code node): Full browser rendering for JavaScript-heavy sites. More complex to set up; handles dynamic content.
External scraping services: Browserless, ScrapingBee, Apify, Bright Data — they handle proxies, CAPTCHAs, and JS rendering. n8n calls their API.
RSS feeds: For blogs and news sites, RSS is often easier and more reliable than scraping HTML.
Basic HTTP Scraping
For simple HTML pages:
HTTP Request node setup:
- Method: GET
- URL: target URL
- Response Format: String (to get raw HTML)
Code node — extract data:
AI-Powered Data Extraction with Claude
For complex or variable HTML structures, pass raw HTML to Claude:
Claude reads messy HTML and returns clean structured data — handling layout variations, encoding issues, and different HTML patterns better than regex.
Competitor Monitoring
Price monitoring workflow:
- Schedule trigger: daily at 6am
- Loop: for each competitor URL in Airtable
- HTTP: fetch competitor pricing page
- Claude: extract products and prices
- Code: compare to previous prices (stored in Airtable)
- IF: price changed → Slack alert
- Airtable: update current prices
Content monitoring:
- Schedule trigger: weekly
- HTTP: fetch competitor blog RSS feed
- Loop: for each new article
- Claude: "Is this article relevant to our product? Summarise key points."
- Slack: send digest of relevant competitor content
Lead Generation via Web Scraping
Job posting scraping:
Company posting "VP Sales" = potential CRM buyer. Company posting "Machine Learning Engineer" = AI tooling buyer.
- Schedule trigger: daily
- HTTP: scrape job boards (Indeed, Glassdoor, LinkedIn Jobs API)
- Claude: "Does this job posting suggest the company needs [your product]? Why?"
- Filter: only positive assessments
- Clearbit: enrich company data
- HubSpot: add to lead pipeline
Directory scraping: Industry directories often list companies with contact information:
- HTTP: fetch directory pages
- Claude: extract company names, websites, phone numbers, descriptions
- Enrichment: Clearbit / Apollo on extracted companies
- HubSpot: create contacts
Handling Anti-Scraping Measures
User agent rotation:
Rate limiting: Add Wait nodes between requests. 1-3 seconds between requests to the same domain respects server limits and avoids blocks.
Proxy services: For sites with IP-based blocking, route through proxy services:
- Bright Data, Oxylabs, ScrapingBee handle proxy rotation
- n8n calls their API instead of the target directly
Use external scraping APIs for hard targets:
Data Storage
Scraped data needs to go somewhere:
Airtable: Best for structured, human-reviewable data. Easy to filter and update.
PostgreSQL/MySQL: Best for high-volume data with complex queries.
Google Sheets: Simple sharing with non-technical stakeholders.
Notion: If your team lives in Notion, store intelligence reports there.
Recommended Tools
- n8n — Automation backbone for scraping workflows
- Claude API — AI-powered HTML extraction
- ScrapingBee — Managed scraping with JS rendering
- Bright Data — Proxy network for anti-bot bypass
- Airtable — Store scraped competitive intelligence
- Apollo.io — Lead data that complements scraped sources
Related articles
n8n vs Make.com vs Zapier: a 2026 honest comparison
No affiliate fluff — where each tool wins, where it breaks, and what we actually run.
Self-hosting n8n: a production-grade setup guide
Queue mode, workers, backups, and the security defaults you should never skip.
Complete n8n Guide: Everything You Need to Build Powerful Automations
The definitive n8n guide — nodes, credentials, triggers, and production-grade patterns.