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
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
- Import the necessary class to your Python script:
from recaptcha_cracker import RecaptchaV2
- 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)
- Use the cracker() method to resolve a reCAPTCHA on a web page:
checked_status = recaptcha.cracker(selector='//*[@id="recaptcha-demo"]/div/div/iframe')
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for recaptcha_cracker-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fea012345f2882222487d1dbc36b4a6669e6c4a1484fb07e0881aec0ddada514 |
|
MD5 | d932c06b56820493f5dd35eefbf835a6 |
|
BLAKE2b-256 | c89fc2105c9594d814f5eb23454869f07925d6f4cc79c9690f5eb3d2a71bdedf |