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.2.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.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: capx-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 35d0f15e99b8a99332b9b184db44c4a002530625b137d5cef584608de9f35739
MD5 331413860c236637f6b93c35cd4297f9
BLAKE2b-256 70f3a1c1dc55d54537b1de7b2a54c657e02bc3bc5994f98fb615a81915e1fc3f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: capx-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7115979edc6b6d9fa612f1fc7b2874850f81167f1ee799a13d45530baab85892
MD5 7fada8d7a0e0ee2ee80ab77faeee6391
BLAKE2b-256 2f4e464000d5ab115f3cbe549474c4c2c1f34fc2ddaec558db73375614b88bf0

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