Skip to main content

reCAPTCHA v2 Image Solver using YOLO and Selenium

Project description

reCAPTCHA v2 Image Solver

Simple Python tool that auto-solves Google's reCAPTCHA v2 "select all squares" puzzles using Selenium + YOLO.

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

How it works

  • Spots objects (cars, buses, crosswalks, etc.) in the images
  • Clicks the right tiles for you
  • Works with 3x3, 4x4, static, and dynamic challenges

1. virtual environment (optional but recommended)

python -m venv venv
# Linux/macOS
source venv/bin/activate
# Windows
venv\Scripts\activate

2. Install

pip install capx

(For the latest dev version straight from GitHub:)

pip install git+https://github.com/mahdi-marjani/capx.git

3. Quick example

from selenium import webdriver
from selenium.webdriver.firefox.service import Service
from webdriver_manager.firefox import GeckoDriverManager
from capx import RecaptchaSolver

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

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

input("Press Enter to quit...")
driver.quit()

Have fun! 🚀

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

capx-0.1.3.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

capx-0.1.3-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file capx-0.1.3.tar.gz.

File metadata

  • Download URL: capx-0.1.3.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for capx-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8bb063bda6e338c2a574e60386c4daa7db4c1b7e55f2d532f8ef92b7f6732303
MD5 6b18d05ce933a52ed1df72e0a4d1b3ff
BLAKE2b-256 7277fab3576e097f00e8d28fc54e616d2db9d2f0c42e32dbf16869204f5f293b

See more details on using hashes here.

File details

Details for the file capx-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: capx-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for capx-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 da9e311569cea5689c944763f39c289950cdabb0c427d6d876b57661c27e28c7
MD5 986b70c11f206502f5e6db3a6c01087f
BLAKE2b-256 91edf3ce9eeae823183662b9f72f04ef32548356d1335e7ec33bb95830ad1b3e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page