Scrape any web page into structured JSON data with ScrapeNinja and AI
UnknownUnknown. This template uses community nodes we can't verify statically. Uses community nodes that can't be verified statically (unverified community packages are off by default in 3.0). Static check, last run 2026-10-19.
Community nodes
These come from third-party npm packages. In n8n 3.0 unverified community packages are off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
CUSTOM(ScrapeNinja, Cleanup HTML, Eval generated code to extract data)
Nodes used (4)
- Scrape Ninja
CUSTOM.scrapeNinja - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Manual Trigger
n8n-nodes-base.manualTrigger - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
What it does
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 "n8n-nodes-scrapeninja", and install. Make sure you are using at least v0.3.0. See this in action: https://www.linkedin.com/feed/update/urn:li:activity:7289659870935490560/