No project description provided
Project description
Selenium-recaptcha-solver
This package is used to solve recaptcha challenges when using a Selenium web driver for web automation tasks.
It supports single-step and multi-step audio solving for ReCAPTCHA audio challenges.
Requirements
Python 3.7+
Main dependencies:
- SpeechRecognition python package to transcribe speech
- Pydub for file conversions
Installation
python -m pip install selenium-recaptcha-solver
Usage
from selenium_recaptcha_solver import API
from selenium import webdriver
# Example driver, the API works for any browser
driver = webdriver.Chrome()
# Create API object and bind it to your webdriver
api_client = API(driver=driver)
# Fetch random web page
driver.get('https://foo.bar.com')
# Get example iframe web element
iframe = driver.find_element(
by='foo',
value='bar',
)
# Solve Captcha using API (Usually used for Captcha challenges or invisible ReCaptchaV2)
api_client.solve_recaptcha_v2(iframe=iframe)
# Or solve a Captcha V2 visible (The one where you have to click a checkbox - If a challenge pops up after the click it's automatically resolved)
api_client.click_recaptcha_v2(iframe=iframe)
# Write the rest of your operations to do after solving the Captcha
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.
License
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
Close
Hashes for selenium-recaptcha-solver-1.0.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e39ffc2ff19961dfe0aed4786dbc3e8d8f76e6b1901857cbd69841d4dc24c35 |
|
MD5 | 90b9c5c92894bdd33106d59f6b24e154 |
|
BLAKE2b-256 | 2738ee1c1ab460db49faa12d810c1cf60ad0bac1d10f241872d9a81380a6c050 |
Close
Hashes for selenium_recaptcha_solver-1.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49fe680f5a0e63b8eaf2a9b18308ff60bf893da1dbd94057eea5651229f5377c |
|
MD5 | 65304c05a707a480d019cfbf7cd6ce0f |
|
BLAKE2b-256 | aca0eb61337f9f9435c3baa084c4e25b9bd19d84d5cab29511022fa0e3d2cf79 |