Debugging Python Script for CAPTCHA Challenges
Publicada el 2026-07-17
Descripción de la oferta
Python/Playwright Automation Debugging – Turnstile & 2Captcha Integration Fix Project Description: I have an existing Python script that uses Playwright (Chromium) to automate form interactions on a public web portal. The script is designed to intercept Cloudflare Turnstile challenge parameters and pass them to the 2Captcha API for token retrieval. However, the current implementation has a critical bug: The Problem: The Turnstile challenge is rendered inside an isolated cross-origin . My script currently executes page.evaluate() on the top-level main frame to read the captured parameters (sitekey, action, data, pagedata). Because of this, it returns None values instead of the actual Turnstile initialization data. What I need fixed: 1. Correctly locate the Turnstile iframe using Playwright's frame_locator or page.frames. 2. Read the intercepted parameters from the correct iframe context. 3. Ensure the 2Captcha API polling loop successfully receives the parameters and returns the final token. 4. The script should inject the returned token into the hidden cf-turnstile-response field. Skills Required: · Strong Python expertise. · Deep experience with Playwright (or Puppeteer) and handling nested/cross-origin iframes. · Experience integrating CAPTCHA solving APIs (specifically 2Captcha). · Familiarity with Cloudflare Turnstile challenges in an automation context. Deliverables: A fully functional Python script that correctly extracts Turnstile parameters from the iframe, communicates with the 2Captcha API, and injects the solution token. I will share my existing codebase upon hiring. Note to Freelancers: This is for legitimate automation of public form filling. Please do not apply if you are unfamiliar with Playwright's frame context management or the 2Captcha createTask payload structure.
Skills
Fuente original: freelancer