验证码处理
验证码绕过服务
Section titled “验证码绕过服务”使用我们的指纹浏览器进行数据采集或自动化时,如果目标网站触发验证码(如滑块或人机验证),无需自行实现复杂的识别或模拟逻辑。
我们的平台集成了自动验证码绕过功能,并通过自定义 CDP 命令暴露。
- 无需第三方验证码解决服务
- 无需图像识别实现
- 与浏览器环境深度集成,稳定性更高
通用调用方法
Section titled “通用调用方法”使用以下统一的 CDP 命令:
Captchas.automaticSolver| 参数 | 类型 | 说明 |
|---|---|---|
| timeout | number | 验证码绕过最大等待时间(秒) |
| solverType | string | 验证码类型(见下方映射表) |
DrissionPage (Python)
Section titled “DrissionPage (Python)”result = page.run_cdp( 'Captchas.automaticSolver', timeout=120, solverType='tiktok_slide_simple')
if result.get("status", False) == True: print("绕过成功")else: print("绕过失败")Playwright (Python)
Section titled “Playwright (Python)”cdp_session = await page.context.new_cdp_session(page)
result = await cdp_session.send( "Captchas.automaticSolver", { "timeout": 120, "solverType": "tiktok_slide_simple" })
if result.get("status", False): print("绕过成功")Puppeteer (Node.js)
Section titled “Puppeteer (Node.js)”const client = await page.target().createCDPSession()
const result = await client.send('Captchas.automaticSolver', { timeout: 120, solverType: 'tiktok_slide_simple',})
if (result.status) { console.log('绕过成功')}验证码类型映射
Section titled “验证码类型映射”| 验证码类型 | solverType |
|---|---|
| Cloudflare 点击验证码 | cloudflare |
| DataDome 滑块验证码 | datadome |
| Google reCAPTCHA v2 | google-v2 |
| Google reCAPTCHA v3 | google-v3 |
| OOCL 滑块验证码 | oocl_slide |
| PerimeterX 按压验证码 | perimeterx |
| SHEIN 图像识别点击验证码 | shein_same_object_click |
| Temu(所有验证码类型) | temu_auto |
| TikTok 缺口滑块验证码 | tiktok_slide_simple |
| TikTok 双螺旋滑块验证码 | tiktok_slide_auto |