Skip to main content

captcha_cracker - A complete Python package for solving various types of CAPTCHAs, including text CAPTCHAs, reCAPTCHAs, and more. Enhance your automation scripts with robust CAPTCHA resolution capabilities.

Project description

Recaptcha Cracker

Github release PyPI - Version PyPI - Downloads GitHub Downloads (all assets, all releases) License

Description

RecaptchaCracker is a tool designed to automate the resolution of Captchas on web pages using Seleniumbase. It allows you to solve "reCaptcha v2" captchas using audio transcription, making it easy to integrate into web automation workflows.

Features

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

Requirements

  • Python 3.10+
  • Seleniumbase
  • Pydub
  • SpeechRecognition
  • verbose-terminal

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 necessary class to your Python script:
from recaptcha_cracker import RecaptchaV2
  1. Initialize a RecaptchaV2 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 RecaptchaV2
recaptcha = RecaptchaV2(driver)
  1. Use the cracker() method to resolve a reCAPTCHA on a web page:
checked_status = recaptcha.cracker(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.1.0.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distribution

recaptcha_cracker-0.1.0-py3-none-any.whl (8.2 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