2captcha
بواسطة adinvadim
Browser & Automationموجز
Solve CAPTCHAs using 2Captcha service.
الوصف
ما الذي تفعله هذه المهارة
A CLI tool that submits CAPTCHAs to the 2Captcha human-powered solving service and returns tokens ready to inject into a target page. Supports image CAPTCHAs, reCAPTCHA v2/v3, hCaptcha, Cloudflare Turnstile, FunCaptcha, and GeeTest. Solving takes 10-60 seconds depending on type.
Using a human-powered solving service via CLI avoids maintaining ML-based solvers or browser extensions that break when CAPTCHA providers update their challenge formats.
متى تستخدمها
- Automating form submissions blocked by reCAPTCHA
- Scraping sites protected by hCaptcha or Cloudflare Turnstile
- Testing CAPTCHA-gated registration and login flows in CI pipelines
- Batch account creation on sites with CAPTCHA gates
- Unblocking browser automation scripts that stall on CAPTCHA challenges
مثال على سير العمل
User asks: automate a reCAPTCHA v2 registration form submission
- 1
Inspect page HTML to locate the data-sitekey attribute in the reCAPTCHA widget
- 2
Call solve-captcha recaptcha2 with the extracted sitekey and page URL
- 3
Wait for the returned token (10-60 seconds)
- 4
Inject the token into the g-recaptcha-response hidden field
- 5
Submit the form programmatically
Form submitted with a valid CAPTCHA token accepted by the target site
المتطلبات
- 2Captcha account with prepaid balance (paid per solve, sign up at 2captcha.com)
- 2Captcha API key (stored in ~/.config/2captcha/api-key or TWOCAPTCHA_API_KEY env var)
- solve-captcha CLI binary (installed via curl from GitHub, non-standard tool)
التثبيت
clawhub install adinvadim/2captchaشغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.