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
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
- Import the RecaptchaCracker class into your Python script:
from recaptcha_cracker import RecaptchaCracker
- 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)
- 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')
- 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.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62219603257fdaddb32b94236b58ca996206c8c5f360610d9f87334ef33ef32c |
|
MD5 | 3d0b84dff3201f761569c3cc499f534b |
|
BLAKE2b-256 | 1d3e9df4ecb7a2b10b351ee004c254d075eb8d3ffa18fa7357d14de74b8b472c |