Keyflow

Search Keyflow

Find a shortcut, workflow, MCP server or skill

Scrape any web page into structured JSON data with ScrapeNinja and AI

n8n template #2812
Disclaimer: 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

How to set it up

  1. Open template #2812 on n8n.io and click Use for free, or copy the template JSON and paste it onto an empty canvas in n8n.
  2. Create a credential under Credentials → Add credential: Google Gemini Chat Model. Then open each of those nodes and pick the credential.
  3. Check the model in the Google Gemini Chat Model node. The template may point at a model your account can't use; swap it for one you have access to.
  4. Click Execute workflow and step through each node's output to confirm the data looks right.
  5. Toggle the workflow to Active so its trigger runs on its own.

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

Questions

Yes. Anthony published it free on n8n.io as a verified creator, and it has 17K views. It runs on n8n Cloud or a self-hosted n8n instance.

Google Gemini Chat Model. The other 1 node are built into n8n.

Similar workflows

NameViews
  1. Respond to WhatsApp Messages with AI Like a Pro!91K
  2. Host Your Own AI Deep Research Agent with n8n, Apify and OpenAI o348K
  3. AI Voice Chat using Webhook, Memory Manager, OpenAI, Google Gemini & ElevenLabs34K
  4. Automated AI Content Creation & Instagram Publishing from Google Sheets31K
  5. Extract text from PDF and image using Vertex AI (Gemini) into CSV26K
  6. Automate Image Validation Tasks using AI Vision22K
  7. 🛠️ AI Prompt Maker17K
  8. CV Resume PDF Parsing with Multimodal Vision AI16K