Skip to main content

RecaptchaCracker is a tool designed to automate reCAPTCHA v2 resolution on web pages using Selenium. Allows you to resolve audio captchas, making it easy to integrate into web automation workflows.

Project description

Recaptcha Cracker Python

Description

RecaptchaCracker is a tool designed to automate reCAPTCHA v2 resolution on web pages using Selenium. Allows you to resolve audio captchas, making it easy to integrate into web automation workflows.

Features

  • Automated resolution of reCAPTCHA captchas on web pages.
  • Flexible configuration of the number of attempts for solving audio captchas.
  • Easy integration into web automation workflows.

Requirements

  • Python 3.10+
  • Seleniumbase
  • Pydub
  • SpeechRecognition

If you're getting an error related to FFmpeg not being installed or in your PATH, get it here: https://ffmpeg.org/download.html If the error persists, make sure FFmpeg is properly installed for your OS and in your PATH.

Installation

pip install recaptcha-cracker

Usage

  1. Import the RecaptchaCracker class into your Python script:
from recaptcha_cracker import RecaptchaCracker
  1. Initialize a RecaptchaCracker object with a SeleniumBase Driver object:
from seleniumbase import Driver

# Inicializa el objeto Driver
driver = Driver()

# Carga la página web
driver.get("https://www.google.com/recaptcha/api2/demo")

# Inicializa el objeto RecaptchaCracker
cracker = RecaptchaCracker(driver)
  1. Use the click_recaptcha() method to resolve a reCAPTCHA on a web page:
checked_status = cracker.click_recaptcha(selector='//*[@id="recaptcha-demo"]/div/div/iframe')
  1. If the reCAPTCHA is successfully resolved, the method will return True. Otherwise, it will return False.

Contributions

If you'd like to contribute, please see the CONTRIBUTING.md file.

License

This project is under the MIT License. See the LICENSE file for more details.

Inspiration

This project was inspired by the project https://github.com/thicccat688/selenium-recaptcha-solver, created by user "thicccat688". The original library provides a robust solution to solve reCAPTCHA v2 challenges using Selenium and speech recognition services. By studying its implementation and design, I was able to better understand how to address captcha resolution challenges in web automation environments.

I thank the team behind selenium-recaptcha-solver for their excellent work and contributions to the open source community.


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

recaptcha_cracker-0.0.1.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

recaptcha_cracker-0.0.1-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

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