Bypass Cloudflare Turnstile for web scraping with 2captcha
UnknownWhat this workflow does
This workflow has 13 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Puppeteer (community).
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Pass CF Turnstile check using 2Captcha (Execute Sub-workflow): calls another n8n workflow
- Set destination_url value (Edit Fields (Set)): sets or maps fields
- Puppeteer: uses Puppeteer
- Get destination web page (HTTP Request): calls an HTTP API
- Extract Turnstile Sitekey (Code): runs custom JavaScript code
- Create Captcha Task (HTTP Request): calls an HTTP API
- Wait: pauses before continuing
- Get Captcha Solution (HTTP Request): calls an HTTP API
- Check Captcha Status (Switch): routes items into branches
- Raise runIndex error (Stop and Error): stops the run with an error
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-puppeteer is verified or supports 3.0 (used in Puppeteer).
Nodes used (11)
- Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Wait
n8n-nodes-base.wait - No Operation, do nothing
n8n-nodes-base.noOp - Stop and Error
n8n-nodes-base.stopAndError - Manual Trigger
n8n-nodes-base.manualTrigger - Switch
n8n-nodes-base.switch - Puppeteer
n8n-nodes-puppeteer.puppeteer - Execute Sub-workflow
n8n-nodes-base.executeWorkflow
From the author
This workflow contains community nodes that are only compatible with the self-hosted version of n8n. Bypass Cloudflare Turnstile for Web Scraping with n8n How It Works This workflow automatically solves Cloudflare Turnstile CAPTCHAs for legitimate web…