Scrape any web page into structured JSON data with ScrapeNinja and AI
n8n template #2812Summary
Use templateDisclaimer: This template only works on self-hosted for now, as it uses a community node. Use Case Web scrapers often break due to web page layout changes. This workflow attempts to mitigate this problem by auto-generating web scraping data extractor code via LLM. How It Works This workflow leverages ScrapeNinja n8n community node to: scrape webpage HTML, feed it into LLM (Google Gemini) and ask to write a JS extractor function code, then it executes the written JS extractor against scraped HTML to extract useful data from webpage (the code is safely executed in a sandbox) Installation To install ScrapeNinja n8n node, in your self-hosted instance, go to Settings -> Community nodes, enter
Hand off to your agent
Prompt
Help me set up the n8n workflow "Scrape any web page into structured JSON data with ScrapeNinja and AI" (https://n8n.io/workflows/2812). It uses: Basic LLM Chain, Google Gemini Chat Model. Import the template JSON into my n8n instance, list every credential I need to create, and walk me through testing it.
Paste into Claude Code and it will do the rest.
Apps and nodes
Similar workflows
NameViews
- Respond to WhatsApp Messages with AI Like a Pro!91K
- Host Your Own AI Deep Research Agent with n8n, Apify and OpenAI o348K
- AI Voice Chat using Webhook, Memory Manager, OpenAI, Google Gemini & ElevenLabs34K
- Automated AI Content Creation & Instagram Publishing from Google Sheets31K
- Extract text from PDF and image using Vertex AI (Gemini) into CSV26K
- Automate Image Validation Tasks using AI Vision22K
- 🛠️ AI Prompt Maker17K
- CV Resume PDF Parsing with Multimodal Vision AI16K