Skip to main content

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.

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='insert-your-locator-here', 
    value='insert-captcha-iframe-here',
)

# Solve Captcha using API
api_client.solve_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

MIT

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

selenium-recaptcha-solver-1.0.1.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

selenium_recaptcha_solver-1.0.1-py3-none-any.whl (5.1 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