Skip to main content

rcap

reCAPTCHA v2 Image Solver using YOLO with Selenium and Playwright

https://github.com/user-attachments/assets/22308be7-3a90-4757-8799-b47008b32bf0

How it works

  • Uses Selenium or Playwright from rcap-client for browser interaction.
  • Uses YOLO-based models from rcap-core for image detection.

Installation

Install via pip:

pip install rcap

Usage

Selenium example:

from selenium import webdriver
from selenium.webdriver.firefox.service import Service
from webdriver_manager.firefox import GeckoDriverManager
from rcap.solver import SeleniumRecaptchaSolver

driver = webdriver.Firefox(service=Service(GeckoDriverManager().install()))
driver.get("https://www.google.com/recaptcha/api2/demo")

solver = SeleniumRecaptchaSolver(driver)
solver.solve()  # Done!

print("reCAPTCHA solved!")
input("Press Enter to quit...")
driver.quit()

Playwright example:

from playwright.sync_api import sync_playwright
from rcap.solver import PlaywrightRecaptchaSolver

playwright = sync_playwright().start()
browser = playwright.chromium.launch(headless=False)
page = browser.new_page()
page.goto("https://www.google.com/recaptcha/api2/demo")

solver = PlaywrightRecaptchaSolver(page)
solver.solve()  # Done!

print("reCAPTCHA solved!")
input("Press Enter to quit...")
page.close()

Metadata

Release files for rcap 3.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rcap 3.0.0
File Size Uploaded
rcap-3.0.0.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rcap 3.0.0
File Interpreter ABI Platform
rcap-3.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / rcap-3.0.0.tar.gz

Download URL rcap-3.0.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9b0b510a3c56e04fa252eb0f1fa5319b18fd0f5d82ca51756d79f21ca97bd267
BLAKE2b-256 checksum
How to use checksums
fd22b18653f67e13de1fee153d796d5ae29c633469dc2cf31d79d1e51a764430
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / rcap-3.0.0-py3-none-any.whl

Download URL rcap-3.0.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
488c766e44bb9a2f278230b0b70529190eefcb4a4fb23197686ac1d5f6e97375
BLAKE2b-256 checksum
How to use checksums
2158ff21284b551c7b1ed0911df850c45128934dd41813ffe8bac4f896f2264a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

3.0.2

2 release files

This release

3.0.0 This release

2 release files

2.0.0

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page